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,4 +1,7 @@
# 更新日志 # 更新日志
### 4.13.4 | 2023.10.22
- 修复`更新用户信息`接口报错问题 #1824
### 4.13.3 | 2023.10.10 ### 4.13.3 | 2023.10.10
- 添加播客声音搜索接口 #1814 - 添加播客声音搜索接口 #1814

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "4.13.3", "version": "4.13.4",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",