瀏覽代碼

fix undefined

xCss 7 年之前
父節點
當前提交
9fc6daa489
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      routes/netease.js

+ 2 - 2
routes/netease.js

@@ -14,10 +14,9 @@ router.get('/:channel', function(req, res, next) {
     const id = req.query.id
     const br = req.query.br || 999000
     const channel = req.params['channel']
-
     // console.log(req)
     let config = {
-        path: links[channel] || '/weapi/v3/song/detail',
+        path: links[channel],
         params: {
             "ids": [id],
             "br": 999000,
@@ -50,6 +49,7 @@ router.get('/:channel', function(req, res, next) {
                     msg: 'no support url. Please set `song` or `playlist`'
                 }
             })
+            return
             break;
     }
     util.requestServer(config).then(ret => {