mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
commit
7973edea53
@ -142,8 +142,15 @@ export class songRequest extends plugin {
|
|||||||
"User-Agent": COMMON_USER_AGENT
|
"User-Agent": COMMON_USER_AGENT
|
||||||
},
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
let imgList = {}
|
||||||
for (let i = 0; i < res.data.songs.length; i++) {
|
for (let i = 0; i < res.data.songs.length; i++) {
|
||||||
musicDate.data[i].cover = res.data.songs[i].al.picUrl
|
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;
|
||||||
|
if (imgList[songId]) {
|
||||||
|
musicDate.data[i].cover = imgList[songId];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (saveId == -1) {
|
if (saveId == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user