浏览代码

【修复】天气问题,附php openssl升级方法 https://www.quyu.net/info/1824.html

刘忠健 2 月之前
父节点
当前提交
f4eb45e5fe
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api/app/api/controller/Weather.php

+ 2 - 1
api/app/api/controller/Weather.php

@@ -14,8 +14,9 @@ class Weather extends Base
         //仁化 101280206
         //清远 101281301
         //北京 101010100
+        //2025年1月22日09:36:50 升级php openssl方法:https://www.quyu.net/info/1824.html
         $cityNo = input("city", "101280206");
-        $url = "http://www.weather.com.cn/weather/" . $cityNo . ".shtml";
+        $url = "https://www.weather.com.cn/weather/" . $cityNo . ".shtml";
 //        $ql=QueryList::getInstance()->get($url);
         $options = [
             'headers' => [