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

3.30.0版本更新后,破坏了之前的cookie返回结构 #778

Closed
lytian opened this issue May 19, 2020 · 2 comments
Closed

3.30.0版本更新后,破坏了之前的cookie返回结构 #778

lytian opened this issue May 19, 2020 · 2 comments

Comments

@lytian
Copy link

lytian commented May 19, 2020

环境

  • 系统/平台: Win10

  • API版本:3.30.0

建议把手机号登录的代码改成:

let result = await request(
    'POST', `https://music.163.com/weapi/#/cellphone`, data,
    {crypto: 'weapi', ua: 'pc', cookie: query.cookie, proxy: query.proxy}
  )
 
  if (result.body.code === 200) {
    result = {
      status: 200,
      body: {
        ...result.body,
        cookie: result.cookie,
      },
      cookie: result.cookie
    }
  }
@Binaryify
Copy link
Owner

确实漏了cookie,一会修复

Binaryify added a commit that referenced this issue May 19, 2020
@Binaryify
Copy link
Owner

已修复~

@lytian lytian closed this as completed May 19, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants