Skip to content

Commit

Permalink
fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Nov 16, 2023
1 parent d6c2021 commit 5945d15
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 261 deletions.
156 changes: 77 additions & 79 deletions docs/.vuepress/public/schema/uigf.json
Original file line number Diff line number Diff line change
@@ -1,98 +1,96 @@
{
"root": {
"type": "object",
"properties": {
"info": {
"type": "object",
"properties": {
"info": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"title": "导出记录的 UID"
},
"lang": {
"type": "string",
"title": "语言 languagecode2-country/regioncode2"
},
"export_timestamp": {
"type": "number",
"title": "导出 UNIX 时间戳(秒)"
},
"export_time": {
"type": "string",
"title": "导出时间",
"description": "yyyy-MM-dd HH:mm:ss"
},
"export_app": {
"type": "string",
"title": "导出 App 名称"
},
"export_app_version": {
"type": "string",
"title": "导出 App 版本"
},
"uigf_version": {
"type": "string",
"title": "UIGF 版本号",
"pattern": "v\\d+\\.\\d+"
},
"region_time_zone": {
"type": "number",
"title": "区域时区偏移"
}
},
"required": ["uid", "uigf_version"],
"title": "UIGF 导出信息"
},
"list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uid": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF 卡池类型",
"description": "用于区分卡池类型不同,但卡池保底计算相同的物品"
},
"gacha_type": {
"type": "string",
"title": "导出记录的 UID"
"title": "卡池类型"
},
"lang": {
"item_id": {
"type": "string",
"title": "语言 languagecode2-country/regioncode2"
"title": "物品的内部 ID"
},
"export_timestamp": {
"type": "number",
"title": "导出 UNIX 时间戳(秒)"
"count": {
"type": "string",
"title": "个数,一般为1"
},
"export_time": {
"time": {
"type": "string",
"title": "导出时间",
"description": "yyyy-MM-dd HH:mm:ss"
"title": "获取物品的时间"
},
"export_app": {
"name": {
"type": "string",
"title": "导出 App 名称"
"title": "物品名称"
},
"export_app_version": {
"item_type": {
"type": "string",
"title": "导出 App 版本"
"title": "物品类型"
},
"uigf_version": {
"rank_type": {
"type": "string",
"title": "UIGF 版本号",
"pattern": "v\\d+\\.\\d+"
"title": "物品等级"
},
"region_time_zone": {
"type": "number",
"title": "区域时区偏移"
"id": {
"type": "string",
"title": "记录内部 ID"
}
},
"required": ["uid", "uigf_version"],
"title": "UIGF 导出信息"
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
"title": "UIGF 物品"
},
"list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF 卡池类型",
"description": "用于区分卡池类型不同,但卡池保底计算相同的物品"
},
"gacha_type": {
"type": "string",
"title": "卡池类型"
},
"item_id": {
"type": "string",
"title": "物品的内部 ID"
},
"count": {
"type": "string",
"title": "个数,一般为1"
},
"time": {
"type": "string",
"title": "获取物品的时间"
},
"name": {
"type": "string",
"title": "物品名称"
},
"item_type": {
"type": "string",
"title": "物品类型"
},
"rank_type": {
"type": "string",
"title": "物品等级"
},
"id": {
"type": "string",
"title": "记录内部 ID"
}
},
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
"title": "UIGF 物品"
},
"title": "物品列表"
}
},
"required": ["info", "list"],
"title": "UIGF 根对象"
}
}
"title": "物品列表"
}
},
"required": ["info", "list"],
"title": "UIGF 根对象"
}
167 changes: 76 additions & 91 deletions docs/en/standards/UIGF.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,114 +87,99 @@ Item's in-game ID, refer to [UIGF API](../API.md) to get this data
```json
{
"root": {
"type": "object",
"properties": {
"info": {
"type": "object",
"properties": {
"info": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"title": "导出记录的 UID"
},
"lang": {
"type": "string",
"title": "语言 languagecode2-country/regioncode2"
},
"export_timestamp": {
"type": "number",
"title": "导出 UNIX 时间戳(秒)"
},
"export_time": {
"type": "string",
"title": "导出时间",
"description": "yyyy-MM-dd HH:mm:ss"
},
"export_app": {
"type": "string",
"title": "导出 App 名称"
},
"export_app_version": {
"type": "string",
"title": "导出 App 版本"
},
"uigf_version": {
"type": "string",
"title": "UIGF 版本号",
"pattern": "v\\d+\\.\\d+"
},
"region_time_zone": {
"type": "number",
"title": "区域时区偏移"
}
},
"required": ["uid", "uigf_version"],
"title": "UIGF 导出信息"
},
"list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uid": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF 卡池类型",
"description": "用于区分卡池类型不同,但卡池保底计算相同的物品"
},
"gacha_type": {
"type": "string",
"title": "UID for exported data"
"title": "卡池类型"
},
"lang": {
"item_id": {
"type": "string",
"title": "language formatted in languagecode2-country/regioncode2"
"title": "物品的内部 ID"
},
"export_timestamp": {
"type": "number",
"title": "Export Timestamp (in seconds precision)"
"count": {
"type": "string",
"title": "个数,一般为1"
},
"export_time": {
"time": {
"type": "string",
"title": "Export Time",
"description": "yyyy-MM-dd HH:mm:ss"
"title": "获取物品的时间"
},
"export_app": {
"name": {
"type": "string",
"title": "Export application name"
"title": "物品名称"
},
"export_app_version": {
"item_type": {
"type": "string",
"title": "Export application version"
"title": "物品类型"
},
"uigf_version": {
"rank_type": {
"type": "string",
"title": "UIGF Version",
"pattern": "v\\d+\\.\\d+"
"title": "物品等级"
},
"region_time_zone": {
"type": "number",
"title": "Timezone offset"
"id": {
"type": "string",
"title": "记录内部 ID"
}
},
"required": [
"uid",
"uigf_version"
],
"title": "UIGF Export Infomation"
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
"title": "UIGF 物品"
},
"list": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF Wish Pool Type",
"description": "Used to identify pools that has different type but shared the pity count"
},
"gacha_type": {
"type": "string",
"title": "Wish type"
},
"item_id": {
"type": "string",
"title": "Item internal ID"
},
"count": {
"type": "string",
"title": "count of item",
"description": "Usually count is 1"
},
"time": {
"type": "string",
"title": "Time of item achieved"
},
"name": {
"type": "string",
"title": "Item name"
},
"item_type": {
"type": "string",
"title": "Type of item"
},
"rank_type": {
"type": "string",
"title": "Item Quality"
},
"id": {
"type": "string",
"title": "Internal record ID"
}
},
"required": [
"uigf_gacha_type",
"gacha_type",
"id",
"item_id",
"time"
],
"title": "UIGF Item"
},
"title": "Items list"
}
},
"required": [
"info",
"list"
],
"title": "UIGF root object"
}
"title": "物品列表"
}
},
"required": ["info", "list"],
"title": "UIGF 根对象"
}
```
Loading

0 comments on commit 5945d15

Please sign in to comment.