✏️ 修正数据类型

This commit is contained in:
BTMuli
2023-06-09 11:32:57 +08:00
parent ac51713767
commit 03dfdc26e1
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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