mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
✨ 剧诗统计浮窗
This commit is contained in:
@@ -15,7 +15,7 @@ const CombatUrl = "https://homa.snapgenshin.com/RoleCombat/";
|
||||
*/
|
||||
export async function getCombatStatistic(
|
||||
isLast: boolean = false,
|
||||
): Promise<TGApp.Plugins.Hutao.Combat.Data> {
|
||||
): Promise<TGApp.Plugins.Hutao.Combat.Data | undefined> {
|
||||
const url = `${CombatUrl}Statistics`;
|
||||
const resp = await TGHttp<TGApp.Plugins.Hutao.Combat.Response>(url, {
|
||||
method: "GET",
|
||||
|
||||
4
src/plugins/Hutao/types/Combat.d.ts
vendored
4
src/plugins/Hutao/types/Combat.d.ts
vendored
@@ -49,12 +49,16 @@ declare namespace TGApp.Plugins.Hutao.Combat {
|
||||
* @description 数据
|
||||
* @since Beta v0.6.3
|
||||
* @interface Data
|
||||
* @property {string} ScheduleId 期数
|
||||
* @property {number} RecordTotal 总数
|
||||
* @property {number} Timestamp 时间戳
|
||||
* @property {Array<TGApp.Plugins.Hutao.Base.Rate>} BackupAvatarRates 使用率
|
||||
* @return Data
|
||||
*/
|
||||
interface Data {
|
||||
ScheduleId: string;
|
||||
RecordTotal: number;
|
||||
Timestamp: number;
|
||||
BackupAvatarRates: Array<TGApp.Plugins.Hutao.Base.Rate>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user