xCss 7 жил өмнө
parent
commit
e1030b06a5
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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']){