shawenguan hai 1 ano
pai
achega
788f1e2d3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Scripts/qweather/qweatherHelper.js

+ 1 - 1
Scripts/qweather/qweatherHelper.js

@@ -88,7 +88,7 @@ async function tryCheckWeather() {
     if (ipLocationRet && ipLocationRet.code == 0) {
         let data = ipLocationRet.data;
         for (let k in data) {
-            ip = ip;
+            ip = k;
             longitude = data[k].longitude;
             latitude = data[k].latitude;
             cityStr = `${data[k].nation}${data[k].province}${data[k].city}`;