xCss 7 ani în urmă
părinte
comite
e1030b06a5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      routes/weather.js

+ 1 - 1
routes/weather.js

@@ -35,7 +35,7 @@ let getWeather = (req, res, next) => {
                 message: '你的使用量过大,如需解禁请联系hi@big.moe' 
             }
         }
-        res.send(output)
+        cb && res.jsonp(output) || res.send(output);
         return
     }
     if(_params['city']){