From acb49acab88c09993c4134c973b6eb593132023a Mon Sep 17 00:00:00 2001 From: binaryify Date: Tue, 4 Aug 2020 09:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ package.json | 3 ++- public/avatar_update.html | 4 ++-- public/playlist_cover_update.html | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 37c4635..327cc58 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.37.1 | 2020.08.04 +- 修复依赖问题 + ### 3.37.0 | 2020.08.03 - 新增`更新头像`,`歌单封面上传`接口和相关例子 [#403](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/403) [#857](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/857) - 加入`axios`依赖 diff --git a/package.json b/package.json index aabe85a..c8a5b90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.37.0", + "version": "3.37.1", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", @@ -37,6 +37,7 @@ "dependencies": { "axios": "^0.19.2", "express": "^4.17.1", + "express-fileupload": "^1.1.9", "pac-proxy-agent": "^3.0.1", "request": "^2.88.0" }, diff --git a/public/avatar_update.html b/public/avatar_update.html index e1ac8e6..cc3caa2 100644 --- a/public/avatar_update.html +++ b/public/avatar_update.html @@ -33,7 +33,7 @@ false ) const res = await axios({ - url: `http://localhost:${port}/user/detail?uid=32953014`, + url: `http://localhost:${port}/user/detail?uid=32953014×tamp=${Date.now()}`, withCredentials: true, //关键 }) document.querySelector('#avatar').src = res.data.profile.avatarUrl @@ -51,7 +51,7 @@ const imgSize = await getImgSize(file) const res = await axios({ method: 'post', - url: `http://localhost:3000/avatar/upload?cookie=${cookieToken}&imgSize=${imgSize.width}&imgX=0&imgY=0`, + url: `http://localhost:3000/avatar/upload?cookie=${cookieToken}&imgSize=${imgSize.width}&imgX=0&imgY=0×tamp=${Date.now()}`, headers: { 'Content-Type': 'multipart/form-data', }, diff --git a/public/playlist_cover_update.html b/public/playlist_cover_update.html index ccb135c..dde976b 100644 --- a/public/playlist_cover_update.html +++ b/public/playlist_cover_update.html @@ -40,7 +40,7 @@ false ) const res = await axios({ - url: `http://localhost:${port}/playlist/detail?id=${playlist_id}`, + url: `http://localhost:${port}/playlist/detail?id=${playlist_id}×tamp=${Date.now()}`, }) document.querySelector('#playlist_cover').src = res.data.playlist.coverImgUrl } @@ -57,7 +57,7 @@ const imgSize = await getImgSize(file) const res = await axios({ method: 'post', - url: `http://localhost:3000/playlist/cover/update?id=${playlist_id}&cookie=${cookieToken}&imgSize=${imgSize.width}&imgX=0&imgY=0`, + url: `http://localhost:3000/playlist/cover/update?id=${playlist_id}&cookie=${cookieToken}&imgSize=${imgSize.width}&imgX=0&imgY=0×tamp=${Date.now()}`, headers: { 'Content-Type': 'multipart/form-data', },