mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🎈 perf: 数据节流提升性能
This commit is contained in:
parent
820f866261
commit
44216cf71d
@ -126,9 +126,9 @@ export class neteasepro extends plugin {
|
||||
const uid = userInfo.uid;
|
||||
// 获取听歌排行榜
|
||||
const userRecord = await getUserRecord(uid);
|
||||
e.reply(" 😘亲,这是你的听歌排行榜");
|
||||
e.reply(" 😘亲,这是你的听歌排行榜Top10");
|
||||
// 由于数据过大,取前10
|
||||
const rank = userRecord.weekData.map(async item => {
|
||||
const rank = userRecord.weekData.slice(0, 10).map(async item => {
|
||||
// 组合数据
|
||||
const song = item.song;
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user