diff --git a/api/tq/index.php b/api/tq/index.php
index 55ee3d5..ff1416b 100644
--- a/api/tq/index.php
+++ b/api/tq/index.php
@@ -11,7 +11,7 @@ header("Content-type: text/html; charset=UTF-8");
if(!$_GET['msg'])exit("抱歉,出错了!\n请输入城市名!");
$msg = $_GET['msg'];
$n = $_GET['n'];
- $str = file_get_contents("compress.zlib://http://m.nmc.cn/f/rest/autocomplete?q=$msg&limit=10×tamp=1547115792491");//56691|威宁|553100|贵州省|weining|AGZ
+ $str = file_get_contents("http://m.nmc.cn/f/rest/autocomplete?q=$msg&limit=10×tamp=1547115792491");//56691|威宁|553100|贵州省|weining|AGZ
$str=str_replace('|','
',$str);
$str = str_replace(PHP_EOL,'
', $str);
$str = "
".$str."
";
@@ -22,7 +22,7 @@ echo "搜索不到与".$_GET["msg"]."的相关天气,请稍后重试或换个
}else{
if($result== 1){
$a=$trstr[1][0];
-$data = file_get_contents("compress.zlib://http://m.nmc.cn/f/rest/real/".$a."");
+$data = file_get_contents("http://m.nmc.cn/f/rest/real/".$a."");
preg_match_all('/"city":"(.*?)","province":"(.*?)"},"week":"(.*?)","moon":"(.*?)","jie_qi":"(.*?)","publish_time":"(.*?)","weather":{"temperature":(.*?),"temperatureDiff":(.*?),"airpressure":(.*?),"humidity":(.*?),"rain":(.*?),"rcomfort":(.*?),"icomfort":(.*?),"info":"(.*?)","img":"(.*?)","feelst":(.*?)},"wind":{"direct":"(.*?)","power":"(.*?)","speed":"(.*?)"},"warn":{"alert":"(.*?)","pic":"(.*?)","province":"(.*?)","city":"(.*?)","url":"(.*?)","issuecontent":"(.*?)"/',$data,$data);//1地名,2省,5节气,6更新时间,7现在温度,9气压,10湿度,12舒适度,14天气,16体感温度,17风向,18风力,19风速,
$a = $data[1][0]; //小地名
$b = $data[2][0]; //省
@@ -51,7 +51,7 @@ echo "共搜索到与【".$_GET["msg"]."】的相关天气信息".$result."条
$n = $_GET['n'];
$i=($n-1);
$a=$trstr[1][$i];//id
-$data = file_get_contents("compress.zlib://http://m.nmc.cn/f/rest/real/".$a."");
+$data = file_get_contents("http://m.nmc.cn/f/rest/real/".$a."");
preg_match_all('/"city":"(.*?)","province":"(.*?)"},"week":"(.*?)","moon":"(.*?)","jie_qi":"(.*?)","publish_time":"(.*?)","weather":{"temperature":(.*?),"temperatureDiff":(.*?),"airpressure":(.*?),"humidity":(.*?),"rain":(.*?),"rcomfort":(.*?),"icomfort":(.*?),"info":"(.*?)","img":"(.*?)","feelst":(.*?)},"wind":{"direct":"(.*?)","power":"(.*?)","speed":"(.*?)"},"warn":{"alert":"(.*?)","pic":"(.*?)","province":"(.*?)","city":"(.*?)","url":"(.*?)","issuecontent":"(.*?)"/',$data,$data);//1地名,2省,5节气,6更新时间,7现在温度,9气压,10湿度,12舒适度,14天气,16体感温度,17风向,18风力,19风速,
$a = $data[1][0]; //小地名
$b = $data[2][0]; //省