mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
fix: bugs
This commit is contained in:
parent
79de3009ad
commit
b98d69af18
4 changed files with 42 additions and 24 deletions
|
|
@ -98,14 +98,20 @@ export function dailyTask() {
|
|||
isAccountLoggedIn() &&
|
||||
(lastDate === undefined || lastDate !== dayjs().date())
|
||||
) {
|
||||
console.log('execute dailyTask');
|
||||
store.commit('updateData', {
|
||||
key: 'lastRefreshCookieDate',
|
||||
value: dayjs().date(),
|
||||
console.debug('[debug][common.js] execute dailyTask');
|
||||
refreshCookie().then(() => {
|
||||
console.debug('[debug][common.js] 刷新cookie');
|
||||
store.commit('updateData', {
|
||||
key: 'lastRefreshCookieDate',
|
||||
value: dayjs().date(),
|
||||
});
|
||||
});
|
||||
dailySignin(0).catch(() => {
|
||||
console.debug('[debug][common.js] 手机端重复签到');
|
||||
});
|
||||
dailySignin(1).catch(() => {
|
||||
console.debug('[debug][common.js] PC端重复签到');
|
||||
});
|
||||
refreshCookie();
|
||||
dailySignin(0);
|
||||
dailySignin(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue