From 255161f99590ee9fe8548488a60eb901ff1e49f7 Mon Sep 17 00:00:00 2001 From: binaryify Date: Sun, 22 Oct 2023 10:08:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=20#1824?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ module/user_update.js | 6 ++++-- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 4b63238..8bcafc5 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 4.13.4 | 2023.10.22 +- 修复`更新用户信息`接口报错问题 #1824 + ### 4.13.3 | 2023.10.10 - 添加播客声音搜索接口 #1814 diff --git a/module/user_update.js b/module/user_update.js index 96c7af1..759103f 100644 --- a/module/user_update.js +++ b/module/user_update.js @@ -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', diff --git a/package.json b/package.json index cdd661f..8f7e444 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.13.3", + "version": "4.13.4", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",