소스 검색

fix netease error

dotos 9 년 전
부모
커밋
976713efa1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      routes/netease.js

+ 2 - 2
routes/netease.js

@@ -13,12 +13,12 @@ router.get('/', function(req, res, next) {
     if (playlist_id) {
         url = 'http://music.163.com/api/playlist/detail/?id=' + playlist_id;
     }
-    netease_http(url, nex, function(data) {
+    netease_http(url, next, function(data) {
         return res.send(data);
     });
 });
 
-function netease_http(url, next, callbackt) {
+function netease_http(url, next, callback) {
     var options = {
         url: url,
         headers: {