feat: 更新 LiveRequest 组件,重构代码并优化歌曲请求逻辑

- 添加时间戳以解决缓存问题
- 重构组件结构,简化逻辑,增强可读性
- 更新歌曲请求设置和管理功能
This commit is contained in:
2025-04-27 03:33:48 +08:00
parent 4d997b6615
commit 00ce0fc7e1
8 changed files with 1669 additions and 1399 deletions

View File

@@ -141,6 +141,10 @@ function getParams(params: any) {
if (urlParams.has('token')) {
resultParams.set('token', urlParams.get('token') || '')
}
// 添加时间戳用于解决意外添加的缓存
resultParams.set('timestamp', Date.now().toString())
return resultParams.toString()
}
export async function QueryPostPaginationAPI<T>(