上传祈愿数据

#202
This commit is contained in:
BTMuli
2026-01-11 22:15:12 +08:00
parent bd081e2dee
commit 8d541891ae
7 changed files with 162 additions and 26 deletions

View File

@@ -113,6 +113,13 @@ const useHutaoStore = defineStore(
}
}
function checkGachaExpire(): boolean {
if (!userInfo.value) return true;
if (userInfo.value.IsMaintainer || userInfo.value.IsLicensedDeveloper) return false;
const expire = new Date(userInfo.value.GachaLogExpireAt).getTime();
return Date.now() < expire;
}
return {
isLogin,
userName,
@@ -124,6 +131,7 @@ const useHutaoStore = defineStore(
tryLogin,
tryRefreshToken,
tryRefreshInfo,
checkGachaExpire,
};
},
{