下载祈愿数据

close #202
This commit is contained in:
BTMuli
2026-01-12 01:05:11 +08:00
parent 8d541891ae
commit 62052d126f
11 changed files with 258 additions and 37 deletions

View File

@@ -79,9 +79,7 @@ const useHutaoStore = defineStore(
}
async function tryRefreshInfo(): Promise<void> {
if (!checkIsValid()) {
await tryRefreshToken();
}
await tryRefreshToken();
const resp = await hutao.Account.info(accessToken.value!);
if ("retcode" in resp) {
showSnackbar.warn(`刷新用户信息失败:${resp.retcode}-${resp.message}`);
@@ -96,6 +94,7 @@ const useHutaoStore = defineStore(
showSnackbar.warn("未找到胡桃云RefreshToken");
return;
}
if (checkIsValid()) return;
try {
const resp = await hutao.Token.refresh(refreshToken.value);
if ("retcode" in resp) {