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

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

@Lisianthus-A

Description

@Lisianthus-A

环境

  • 系统/平台: <你的系统和平台>
    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

期待效果

希望将提示信息返回

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions