diff --git a/CHANGELOG.MD b/CHANGELOG.MD index cbe31589c50..46116521843 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 4.13.6 | 2023.10.26 +- 修复匿名登录下,部分接口提示网络太拥挤问题 #1829 + ### 4.13.5 | 2023.10.22 - Dockfile 更新,移除 linux/s390x 平台,防止构建失败 diff --git a/module/artist_new_mv.js b/module/artist_new_mv.js index d385e358f05..9046b7272ad 100644 --- a/module/artist_new_mv.js +++ b/module/artist_new_mv.js @@ -1,6 +1,6 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { limit: query.limit || 20, startTimestamp: query.before || Date.now(), diff --git a/module/artist_new_song.js b/module/artist_new_song.js index 41fbde50de4..f1cc525e9a1 100644 --- a/module/artist_new_song.js +++ b/module/artist_new_song.js @@ -1,6 +1,6 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { limit: query.limit || 20, startTimestamp: query.before || Date.now(), diff --git a/module/cloud_match.js b/module/cloud_match.js index 98fc8aa8302..ef8d82be568 100644 --- a/module/cloud_match.js +++ b/module/cloud_match.js @@ -1,6 +1,6 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { userId: query.uid, songId: query.sid, diff --git a/module/comment_hug_list.js b/module/comment_hug_list.js index eaf535fe284..12a2d02aa2d 100644 --- a/module/comment_hug_list.js +++ b/module/comment_hug_list.js @@ -1,7 +1,7 @@ const { resourceTypeMap } = require('../util/config.json') module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' query.type = resourceTypeMap[query.type || 0] const threadId = query.type + query.sid const data = { diff --git a/module/homepage_block_page.js b/module/homepage_block_page.js index f214a6d91c2..fbf9aab19ee 100644 --- a/module/homepage_block_page.js +++ b/module/homepage_block_page.js @@ -3,7 +3,7 @@ // query.refresh 是否刷新数据 module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { refresh: query.refresh || false, cursor: query.cursor } return request( 'POST', diff --git a/module/homepage_dragon_ball.js b/module/homepage_dragon_ball.js index b6a1da7996d..872ddcdd218 100644 --- a/module/homepage_dragon_ball.js +++ b/module/homepage_dragon_ball.js @@ -5,7 +5,7 @@ module.exports = (query, request) => { const data = {} query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' return request( 'POST', `https://music.163.com/eapi/homepage/dragon/ball/static`, diff --git a/module/hug_comment.js b/module/hug_comment.js index fc88f138a62..38805211231 100644 --- a/module/hug_comment.js +++ b/module/hug_comment.js @@ -1,7 +1,7 @@ const { resourceTypeMap } = require('../util/config.json') module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' query.type = resourceTypeMap[query.type || 0] const threadId = query.type + query.sid const data = { diff --git a/module/login.js b/module/login.js index 3c888273d43..2d931353546 100644 --- a/module/login.js +++ b/module/login.js @@ -4,7 +4,7 @@ const crypto = require('crypto') module.exports = async (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { username: query.email, password: diff --git a/module/login_cellphone.js b/module/login_cellphone.js index 9f8803a1a13..1dd2572dc7c 100644 --- a/module/login_cellphone.js +++ b/module/login_cellphone.js @@ -4,7 +4,7 @@ const crypto = require('crypto') module.exports = async (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { phone: query.phone, countrycode: query.countrycode || '86', diff --git a/module/send_album.js b/module/send_album.js index d6693a5c1f1..6545493e851 100644 --- a/module/send_album.js +++ b/module/send_album.js @@ -2,7 +2,7 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { id: query.id, msg: query.msg || '', diff --git a/module/send_song.js b/module/send_song.js index b2ce0a27ac7..ccf3bb21a84 100644 --- a/module/send_song.js +++ b/module/send_song.js @@ -2,7 +2,7 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { id: query.id, msg: query.msg || '', diff --git a/module/user_comment_history.js b/module/user_comment_history.js index 339be309e0c..d858204cea5 100644 --- a/module/user_comment_history.js +++ b/module/user_comment_history.js @@ -1,6 +1,6 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { compose_reminder: 'true', compose_hot_comment: 'true', diff --git a/module/user_event.js b/module/user_event.js index 521b0dd0d71..1d70252fd21 100644 --- a/module/user_event.js +++ b/module/user_event.js @@ -2,7 +2,7 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { getcounts: true, time: query.lasttime || -1, diff --git a/module/user_update.js b/module/user_update.js index 759103fbd6d..8f63b0142bc 100644 --- a/module/user_update.js +++ b/module/user_update.js @@ -2,7 +2,7 @@ module.exports = (query, request) => { query.cookie.os = 'ios' - query.cookie.appver = '8.7.01' + query.cookie.appver = '8.10.90' const data = { // avatarImgId: '0', birthday: query.birthday, diff --git a/package.json b/package.json index fb6fe4e6e7f..4acba33c195 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.13.5", + "version": "4.13.6", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/util/request.js b/util/request.js index 64940ab477d..e99e67f21d2 100644 --- a/util/request.js +++ b/util/request.js @@ -82,6 +82,8 @@ const createRequest = (method, url, data = {}, options) => { // 游客 if (!options.cookie.MUSIC_A) { options.cookie.MUSIC_A = anonymous_token + options.cookie.os = options.cookie.os || 'ios' + options.cookie.appver = options.cookie.appver || '8.10.90' } } headers['Cookie'] = Object.keys(options.cookie)