Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

对歌单添加或删除歌曲无响应 #1099

Closed
Lisianthus-A opened this issue Jan 18, 2021 · 0 comments · Fixed by #1100
Closed

对歌单添加或删除歌曲无响应 #1099

Lisianthus-A opened this issue Jan 18, 2021 · 0 comments · Fixed by #1100

Comments

@Lisianthus-A
Copy link
Contributor

环境

  • 系统/平台: <你的系统和平台>
    Win10
  • nodejs 版本: <你的 NodeJS 版本号>
    14.0.0
  • API版本: <运行的云音乐 API 的版本号, 对应 package.json 里面的 version>
    4.0.1

出现问题

对歌单添加或删除歌曲无响应,调试后发现是调用 module/playlist_tracks.js 出错,把 catch 到的 error 打印出来是

{
  status: 521,
  body: {
    code: 521,
    message: '绑定手机号后才可操作哦',
    debugInfo: null,
    msg: '绑定手机号后才可操作哦'
  },
  cookie: []
}

重现步骤

调用 /playlist/tracks?op=del&pid=488030550&tracks=26620638 后,控制台打印出

[ERR] /playlist/tracks?op=del&pid=488030550&tracks=26620638 { status: undefined, body: undefined }
(node:20416) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'code' of undefined

期待效果

希望将提示信息返回

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant