✏️ UIGF4导出添加lang

This commit is contained in:
目棃
2024-07-18 18:13:12 +08:00
parent 5bf2521938
commit 27a2e93efc
2 changed files with 5 additions and 2 deletions

View File

@@ -60,13 +60,14 @@ declare namespace TGApp.Plugins.UIGF {
/**
* @description UIGF 头部信息, v4.0
* @since Beta v0.5.0
* @since Beta v0.5.1
* @interface Info4
* @see docs\UIGF4.md
* @property {string} export_timestamp - 导出时间戳(秒)
* @property {string} export_app - 导出应用
* @property {string} export_app_version - 导出应用版本
* @property {string} version - UIGF 版本
* @property {string} lang - 语言
* @return Info4
*/
interface Info4 {
@@ -74,6 +75,7 @@ declare namespace TGApp.Plugins.UIGF {
export_app: string;
export_app_version: string;
version: string;
lang?: string;
}
/**

View File

@@ -50,7 +50,7 @@ async function getUigfHeader(uid: string): Promise<TGApp.Plugins.UIGF.Info> {
/**
* @description 获取 UIGF v4.0 头部信息
* @since Beta v0.5.0
* @since Beta v0.5.1
* @returns {TGApp.Plugins.UIGF.Info4} UIGF v4.0 头部信息
*/
async function getUigf4Header(): Promise<TGApp.Plugins.UIGF.Info4> {
@@ -60,6 +60,7 @@ async function getUigf4Header(): Promise<TGApp.Plugins.UIGF.Info4> {
export_app: "TeyvatGuide",
export_app_version: await app.getVersion(),
version: "v4.0",
lang: "zh-cn",
};
}