Browse Source

fix undefined

xCss 7 năm trước cách đây
mục cha
commit
5e73c661ab
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      routes/netease.js

+ 3 - 3
routes/netease.js

@@ -33,7 +33,7 @@ router.get('/:channel', function(req, res, next) {
                 "n": 1000,
                 "csrf_token": ""
             }
-            request(config,id,channel)
+            request(config,id,br,channel,res)
             break;
         case 'song':
             config['params'] = {
@@ -41,7 +41,7 @@ router.get('/:channel', function(req, res, next) {
                 "ids": '[' + id + ']',
                 "csrf_token": ""
             }
-            request(config,id,channel)
+            request(config,id,br,channel,res)
             break;
         default:
             res.send({
@@ -55,7 +55,7 @@ router.get('/:channel', function(req, res, next) {
     }
 
 });
-function request(config,id,channel){
+function request(config,id,br,channel,res){
 
     util.requestServer(config).then(ret => {
         if (channel == 'song') {