|
|
@@ -88,22 +88,22 @@ async function signIn() {
|
|
|
const msg = `请求签到异常\n${JSON.stringify(err)}`;
|
|
|
magicJS.logger.error(msg);
|
|
|
});
|
|
|
- // if (!result) {
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // if (result.match(/\u606d\u559c\u60a8/)) {//恭喜您
|
|
|
- // magicJS.notification.appendNotifyInfo(`🎉恭喜你今日签到成功!`);
|
|
|
- // } else {
|
|
|
- // if (result.match(/\u4e0b\u671f\u518d\u6765/)) {//下期再来
|
|
|
- // magicJS.notification.appendNotifyInfo(`⚠️今日已经签到,下次再次!!!`);
|
|
|
- // } else {
|
|
|
- // if (result.match(/\u9700\u8981\u5148\u767b\u5f55/)) {//需要先登录
|
|
|
- // magicJS.notification.appendNotifyInfo(`❌请先登录获取最新Cookie!!!`);
|
|
|
- // } else {
|
|
|
- // magicJS.notification.appendNotifyInfo(`❌信息未正常处理,请更新脚本!!!`);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if (!result) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (result.match(/恭喜您/)) {//恭喜您
|
|
|
+ magicJS.notification.appendNotifyInfo(`🎉恭喜你今日签到成功!`);
|
|
|
+ } else {
|
|
|
+ if (result.match(/抱歉,本期您已申请过此任务,请下期再来/)) {//下期再来
|
|
|
+ magicJS.notification.appendNotifyInfo(`⚠️抱歉,本期您已申请过此任务,请下期再来`);
|
|
|
+ } else {
|
|
|
+ if (result.match(/您需要先登录才能继续本操作/)) {//需要先登录
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌请先登录获取最新Cookie!!!`);
|
|
|
+ } else {
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌信息未正常处理,请更新脚本!!!`);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
async function taskDraw() {
|
|
|
@@ -133,6 +133,12 @@ async function taskDraw() {
|
|
|
} else {
|
|
|
if (result.match(/不是进行中的任务/)) {//下期再来
|
|
|
magicJS.notification.appendNotifyInfo(`⚠️不是进行中的任务!`);
|
|
|
+ } else {
|
|
|
+ if (result.match(/您需要先登录才能继续本操作/)) {//需要先登录
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌请先登录获取最新Cookie!!!`);
|
|
|
+ } else {
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌信息未正常处理,请更新脚本!!!`);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|