瀏覽代碼

修复:天气返回最高温度不带℃

刘忠健 9 月之前
父節點
當前提交
2e2109d80e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/app/api/controller/Weather.php

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

@@ -65,7 +65,7 @@ class Weather extends Base
         foreach ($weather as $key => $value) {
             //如果最高温度没包含℃,就加上
             if (!strpos($value["max"], "℃")) {
-                $weather[$key]["max"] = $weather[$key]["max"] . "℃";
+                $weather[$key]["max"] = $value["max"] . "℃";
             }
         }
         $res = [