From 03dfdc26e12d59f9e7504fa9e323c1997377127d Mon Sep 17 00:00:00 2001 From: BTMuli Date: Fri, 9 Jun 2023 11:32:57 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/Sqlite/utils/transUserRecord.ts | 4 ++-- src/types/Game/Record.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/Sqlite/utils/transUserRecord.ts b/src/plugins/Sqlite/utils/transUserRecord.ts index f0ffd61a..5e1d1de5 100644 --- a/src/plugins/Sqlite/utils/transUserRecord.ts +++ b/src/plugins/Sqlite/utils/transUserRecord.ts @@ -112,8 +112,8 @@ function transStat (data: TGApp.Game.Record.Stats): string { function transWorld (data: TGApp.Game.Record.WorldExplore[]): string { const worlds: TGApp.Sqlite.Record.WorldExplore[] = data.map(item => { let offerings; - if (item.Offerings !== undefined) { - offerings = item.Offerings.map(offering => { + if (item.offerings !== undefined) { + offerings = item.offerings.map(offering => { return { name: offering.name, icon: offering.icon, diff --git a/src/types/Game/Record.d.ts b/src/types/Game/Record.d.ts index cd2cdffb..03535759 100644 --- a/src/types/Game/Record.d.ts +++ b/src/types/Game/Record.d.ts @@ -133,7 +133,7 @@ declare namespace TGApp.Game.Record { * @property {string} icon - 图标 * @property {string} name - 名称 * @property {string} type - 类型 // Reputation: 声望,Offering: 奉献 - * @property {WorldOffering[]} Offerings - 奉献物品 + * @property {WorldOffering[]} offerings - 奉献物品 * @property {number} id - ID * @property {number} parent_id - 父级 ID * @property {string} map_url - 地图 URL @@ -149,7 +149,7 @@ declare namespace TGApp.Game.Record { icon: string name: string type: string - Offerings: WorldOffering[] + offerings: WorldOffering[] id: number parent_id: number map_url: string