♻️ 重构刷新逻辑,提取获取账号和Cookie的辅助函数

This commit is contained in:
BTMuli
2026-03-26 01:12:35 +08:00
parent ac4ed5dedf
commit b95f0a8f9b
7 changed files with 112 additions and 159 deletions

View File

@@ -1,6 +1,6 @@
/**
* App 账号相关类型定义文件
* @since Beta v0.6.0
* @since Beta v0.9.9
*/
declare namespace TGApp.App.Account {
@@ -54,4 +54,15 @@ declare namespace TGApp.App.Account {
/** STUid */
stuid: string;
};
/**
* 获取当前刷新账号返回
* @since Beta v0.9.9
*/
type RfAc = {
/** 账号 */
account: TGApp.Sqlite.Account.Game;
/** Cookie */
cookie: Cookie;
};
}