From 2c1bf1caed08194294deb473210c9be4f0055b79 Mon Sep 17 00:00:00 2001 From: binaryify Date: Thu, 26 Oct 2023 11:36:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8C=BF=E5=90=8D?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=B8=8B,=E9=83=A8=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=8F=90=E7=A4=BA=E7=BD=91=E7=BB=9C=E5=A4=AA=E6=8B=A5?= =?UTF-8?q?=E6=8C=A4=E9=97=AE=E9=A2=98=20#1829?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ module/artist_new_mv.js | 2 +- module/artist_new_song.js | 2 +- module/cloud_match.js | 2 +- module/comment_hug_list.js | 2 +- module/homepage_block_page.js | 2 +- module/homepage_dragon_ball.js | 2 +- module/hug_comment.js | 2 +- module/login.js | 2 +- module/login_cellphone.js | 2 +- module/send_album.js | 2 +- module/send_song.js | 2 +- module/user_comment_history.js | 2 +- module/user_event.js | 2 +- module/user_update.js | 2 +- package.json | 2 +- util/request.js | 2 ++ 17 files changed, 20 insertions(+), 15 deletions(-) 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)