From 3e5c052f98a3d4157a72f049f21ec85f74229ba3 Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 29 May 2023 16:30:36 +0800 Subject: [PATCH 01/11] =?UTF-8?q?fix:=20=E6=94=AF=E6=8C=81headers=E4=B8=8D?= =?UTF-8?q?=E6=90=BA=E5=B8=A6cookie=E4=BF=A1=E6=81=AF=20#1744=20#1748?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 4 ++++ docs/README.md | 2 ++ package.json | 2 +- public/qrlogin.html | 2 +- server.js | 29 +++++++++++++++++------------ 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index cbc8f58e4a9..48c84832ca5 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,8 @@ # 更新日志 + +### 4.8.11 | 2023.05.29 +- 支持headers不携带cookie信息 + ### 4.8.10 | 2023.04.07 - 补充私信和通知接口 diff --git a/docs/README.md b/docs/README.md index cd567821411..f1da2ff94ed 100644 --- a/docs/README.md +++ b/docs/README.md @@ -481,6 +481,8 @@ $ sudo docker run -d -p 3000:3000 netease-music-api !> 分页接口返回字段里有`more`,more 为 true 则为有下一页 +!> 如果不需要接口headers携带cookies信息,可以加上noCookie参数,如`?noCookie=true` + ### 登录 说明 : 登录有三个接口,建议使用`encodeURIComponent`对密码编码或者使用`POST`请求,避免某些特殊字符无法解析,如`#`(`#`在 url 中会被识别为 hash,而不是 query) diff --git a/package.json b/package.json index 81ba078baf1..80b529ffb67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.8.10", + "version": "4.8.11", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/public/qrlogin.html b/public/qrlogin.html index 7799b054279..209dd04e95d 100644 --- a/public/qrlogin.html +++ b/public/qrlogin.html @@ -15,7 +15,7 @@