xCss 7 년 전
부모
커밋
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']){