mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
@@ -7,21 +7,17 @@
|
||||
/**
|
||||
* @description 将本地数据转为上传用的数据
|
||||
* @since Beta v0.6.3
|
||||
* @param {number[]} avatars 角色
|
||||
* @param {number} schedule 期数
|
||||
* @param {number} uid UID
|
||||
* @param {TGApp.Sqlite.Combat.SingleTable} data 数据
|
||||
* @returns {TGApp.Plugins.Hutao.Combat.UploadData} 上传用的数据
|
||||
*/
|
||||
export function transCombatLocal(
|
||||
avatars: number[],
|
||||
schedule: number,
|
||||
uid: string,
|
||||
data: TGApp.Sqlite.Combat.SingleTable,
|
||||
): TGApp.Plugins.Hutao.Combat.UploadData {
|
||||
return {
|
||||
Version: 1,
|
||||
Uid: uid,
|
||||
Uid: data.uid,
|
||||
Identity: "TeyvatGuide",
|
||||
BackupAvatars: avatars,
|
||||
ScheduleId: schedule,
|
||||
BackupAvatars: data.detail.backup_avatars.map((i) => i.avatar_id),
|
||||
ScheduleId: data.id,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user