🔊 完善log处理

This commit is contained in:
BTMuli
2026-04-02 12:06:19 +08:00
parent 8a30265412
commit 43d4a8b6bc
2 changed files with 6 additions and 2 deletions

View File

@@ -492,11 +492,13 @@ async function confirmRefresh(force: boolean): Promise<void> {
authkey.value = authkeyRes;
await TGLogger.Info(`[Gacha][${rfAccount.gameUid}][confirmRefresh] 成功获取 authkey`);
} else {
showSnackbar.error("获取 authkey 失败");
await showLoading.update("获取authkey失败");
showSnackbar.error(`[${authkeyRes.retcode}] ${authkeyRes.message}`);
await TGLogger.Error(`[Gacha][${rfAccount.gameUid}][confirmRefresh] 获取 authkey 失败`);
await TGLogger.Error(
`[Gacha][${rfAccount.gameUid}][confirmRefresh] ${authkeyRes.retcode} ${authkeyRes.message}`,
);
await new Promise<void>((resolve) => setTimeout(resolve, 1000));
await showLoading.end();
return;
}

View File

@@ -208,11 +208,13 @@ async function confirmRefresh(force: boolean): Promise<void> {
authkey.value = authkeyRes;
await TGLogger.Info(`[GachaB][${rfAccount.gameUid}] 成功获取 authkey`);
} else {
showSnackbar.error("获取 authkey 失败");
await showLoading.update("获取authkey失败");
showSnackbar.error(`[${authkeyRes.retcode}]${authkeyRes.message}`);
await TGLogger.Error(`[GachaB][${rfAccount.gameUid}] 获取 authkey 失败`);
await TGLogger.Error(
`[GachaB][${rfAccount.gameUid}] ${authkeyRes.retcode} ${authkeyRes.message}`,
);
await new Promise<void>((resolve) => setTimeout(resolve, 1000));
await showLoading.end();
return;
}