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