|
@@ -145,27 +145,27 @@ async function tryTodaySignIn() {
|
|
let retSignIn = await doTodaySignIn(0);
|
|
let retSignIn = await doTodaySignIn(0);
|
|
if (retSignIn.code != 200) {
|
|
if (retSignIn.code != 200) {
|
|
if (retSignIn.code == 401) {
|
|
if (retSignIn.code == 401) {
|
|
- magicJS.notification.msg("⚠️登录状态已过期,请重新登录", "点击前往登录");
|
|
|
|
|
|
+ magicJS.notification.appendNotifyInfo("⚠️登录状态已过期,请重新登录", "点击前往登录");
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let data = retSignIn.data;
|
|
let data = retSignIn.data;
|
|
if (data.signIn) {
|
|
if (data.signIn) {
|
|
- magicJS.notification.msg(`🎉今日已签到,已签到${data.signInTimes}次`);
|
|
|
|
|
|
+ magicJS.notification.appendNotifyInfo(`🎉今日已签到,已签到${data.signInTimes}次`);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
retSignIn = await doTodaySignIn(1);
|
|
retSignIn = await doTodaySignIn(1);
|
|
if (retSignIn.code != 200) {
|
|
if (retSignIn.code != 200) {
|
|
if (retSignIn.code == 401) {
|
|
if (retSignIn.code == 401) {
|
|
- magicJS.notification.msg("⚠️登录状态已过期,请重新登录", "点击前往登录");
|
|
|
|
|
|
+ magicJS.notification.appendNotifyInfo("⚠️登录状态已过期,请重新登录", "点击前往登录");
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
data = retSignIn.data;
|
|
data = retSignIn.data;
|
|
if (data.signIn) {
|
|
if (data.signIn) {
|
|
- magicJS.notification.msg(`🎉今日签到成功,已签到${data.signInTimes}次`);
|
|
|
|
|
|
+ magicJS.notification.appendNotifyInfo(`🎉今日签到成功,已签到${data.signInTimes}次`);
|
|
} else {
|
|
} else {
|
|
- magicJS.notification.msg(`❌今日签到失败,请重试`);
|
|
|
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌今日签到失败,请重试`);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|