From 6b28f27ec4e59add1a51631565b2c91f2ee064a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E9=B1=BC?= <9903082+qdyovo@user.noreply.gitee.com> Date: Fri, 15 Nov 2024 14:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0=E4=BA=91?= =?UTF-8?q?=E7=9B=98=E9=BB=98=E8=AE=A4=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/songRequest.js | 10 +++++++--- .../neteaseMusicInfo/neteaseMusicInfo.css | 1 + .../neteaseMusicInfo/neteaseMusicInfo.html | 8 ++++++++ resources/html/pick-song/pick-song.css | 1 + resources/html/pick-song/pick-song.html | 6 +++++- resources/img/default.png | Bin 0 -> 6914790 bytes 6 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 resources/img/default.png diff --git a/apps/songRequest.js b/apps/songRequest.js index 2de52ba..6d5c782 100644 --- a/apps/songRequest.js +++ b/apps/songRequest.js @@ -150,7 +150,11 @@ export class songRequest extends plugin { }).then(res => { let imgList = {} for (let i = 0; i < res.data.songs.length; i++) { - imgList[res.data.songs[i].id] = res.data.songs[i].al.picUrl; + if (res.data.songs[i].al.includes('109951169484091680.jpg')) { + imgList[res.data.songs[i].id] = 'def' + } else { + imgList[res.data.songs[i].id] = res.data.songs[i].al.picUrl; + } } for (let i = 0; i < musicDate.data.length; i++) { const songId = musicDate.data[i].id; @@ -359,7 +363,7 @@ export class songRequest extends plugin { throw new Error('上传失败,响应不正确'); } } catch (error) { - throw error; + throw error; } }; await retryAxiosReq(() => tryUpload()) @@ -426,7 +430,7 @@ export class songRequest extends plugin { cleanPath = await downloadAudio(cleanPath, this.getCurDownloadPath(e), songName, "manual", fileFormat); } } - logger.info(`[R插件][云盘] 上传路径审计: ${ cleanPath }`); + logger.info(`[R插件][云盘] 上传路径审计: ${cleanPath}`); // 使用 splitPaths 提取信息 const [{ dir: dirPath, fileName, extension, baseFileName }] = splitPaths(cleanPath); // 文件名拆解为两部分 diff --git a/resources/html/neteaseMusicInfo/neteaseMusicInfo.css b/resources/html/neteaseMusicInfo/neteaseMusicInfo.css index 3a03d64..00c9129 100644 --- a/resources/html/neteaseMusicInfo/neteaseMusicInfo.css +++ b/resources/html/neteaseMusicInfo/neteaseMusicInfo.css @@ -69,6 +69,7 @@ html { width: 135px; height: 135px; border-radius: 10px; + object-fit: cover; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); } diff --git a/resources/html/neteaseMusicInfo/neteaseMusicInfo.html b/resources/html/neteaseMusicInfo/neteaseMusicInfo.html index f886fe2..4514aa9 100644 --- a/resources/html/neteaseMusicInfo/neteaseMusicInfo.html +++ b/resources/html/neteaseMusicInfo/neteaseMusicInfo.html @@ -12,14 +12,22 @@
+ {{ if songInfo.cover == 'def' }} + {{ else }} + + {{ /if }}
+ {{ if songInfo.cover == 'def' }} + {{ else }} + + {{ /if }}
{{ songInfo.size }} diff --git a/resources/html/pick-song/pick-song.css b/resources/html/pick-song/pick-song.css index edeb8c4..6d16016 100644 --- a/resources/html/pick-song/pick-song.css +++ b/resources/html/pick-song/pick-song.css @@ -95,6 +95,7 @@ html { height: 90px; border-radius: 8px; flex-shrink: 0; + object-fit: cover; } .bgicon { diff --git a/resources/html/pick-song/pick-song.html b/resources/html/pick-song/pick-song.html index d0fc77b..98af964 100644 --- a/resources/html/pick-song/pick-song.html +++ b/resources/html/pick-song/pick-song.html @@ -16,7 +16,11 @@