mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复导出字段数据缺失
This commit is contained in:
@@ -141,10 +141,12 @@ async function updateAchievement(data: TGApp.Sqlite.Achievement.SingleTable): Pr
|
||||
*/
|
||||
function transDb2Uiaf(data: TGApp.Sqlite.Achievement.SingleTable): TGApp.Plugins.UIAF.Achievement {
|
||||
const isCompleted = data.isCompleted === 1;
|
||||
let timestamp = 0;
|
||||
if (isCompleted) timestamp = new Date(data.completedTime).getTime();
|
||||
const status = getUiafStatus(isCompleted, data.progress);
|
||||
return {
|
||||
id: data.id,
|
||||
timestamp: data.timestamp,
|
||||
timestamp: timestamp,
|
||||
current: data.progress,
|
||||
status,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user