xCss hace 7 años
padre
commit
e1030b06a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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']){