diff --git a/src/pages/common/Achievements.vue b/src/pages/common/Achievements.vue index 2ede488e..330f5f2c 100644 --- a/src/pages/common/Achievements.vue +++ b/src/pages/common/Achievements.vue @@ -424,7 +424,7 @@ async function handleImportOuter(app: string): Promise { const data: TGApp.Plugins.UIAF.Data = JSON.parse(clipboard); loadingTitle.value = "正在导入数据"; loading.value = true; - await TSUserAchi.mergeUIAF(data); + await TSUserAchi.mergeUIAF(data.list); loading.value = false; showSnackbar({ color: "success", diff --git a/src/plugins/Sqlite/sql/updateData.ts b/src/plugins/Sqlite/sql/updateData.ts index f415e6ad..a4bf47b9 100644 --- a/src/plugins/Sqlite/sql/updateData.ts +++ b/src/plugins/Sqlite/sql/updateData.ts @@ -1,14 +1,14 @@ /** * @file plugins/Sqlite/sql/updateData.ts * @description 更新数据 - * @since Beta v0.4.7 + * @since Beta v0.4.9 */ import minifySql from "../../../utils/minifySql"; /** * @description 导入UIAF数据-单项 - * @since Beta v0.4.7 + * @since Beta v0.4.9 * @param {TGApp.Plugins.UIAF.Achievement} data * @returns {string} sql */ @@ -33,10 +33,10 @@ export function importUIAFData(data: TGApp.Plugins.UIAF.Achievement): string[] { } else { sql = ` UPDATE Achievements - SET progress = ${achievement.current}, + SET progress = ${data.current}, updated = datetime('now', 'localtime') - WHERE id = ${achievement.id} - AND progress != ${achievement.current}; + WHERE id = ${data.id} + AND progress != ${data.current}; `; } return minifySql(sql);