fix: 修复更新用户信息接口报错问题 #1824

This commit is contained in:
binaryify
2023-10-22 10:08:42 +08:00
parent 51eb568ea9
commit 255161f995
3 changed files with 8 additions and 3 deletions

View File

@ -1,8 +1,10 @@
// 编辑用户信息
module.exports = (query, request) => {
query.cookie.os = 'ios'
query.cookie.appver = '8.7.01'
const data = {
avatarImgId: '0',
// avatarImgId: '0',
birthday: query.birthday,
city: query.city,
gender: query.gender,
@ -12,7 +14,7 @@ module.exports = (query, request) => {
}
return request(
'POST',
`https://music.163.com/weapi/user/profile/update`,
`https://music.163.com/api/user/profile/update`,
data,
{
crypto: 'weapi',