|
|
@@ -76,8 +76,8 @@ async function Main() {
|
|
|
magicJS.logger.info(`开始执行第 ${index + 1} 个Cookies的作业`);
|
|
|
currentCookie = magicJS.data.read(dingDongCookieKey, "", session);
|
|
|
currentBody = magicJS.data.read(dingDongBodyKey, "", session);
|
|
|
- magicJS.logger(currentCookie);
|
|
|
- magicJS.logger(currentBody);
|
|
|
+ magicJS.logger.info(currentCookie);
|
|
|
+ magicJS.logger.info(currentBody);
|
|
|
await magicJS.utils.retry(checkIn, 3, 1000)(currentCookie, currentBody).then(msg => {
|
|
|
magicJS.notification.post(msg);
|
|
|
}).catch(err => {
|
|
|
@@ -119,6 +119,7 @@ function getUserId(cookie) {
|
|
|
}
|
|
|
|
|
|
function checkIn(cookie, body) {
|
|
|
+ magicJS.logger.info('checkIn');
|
|
|
return new Promise((resolve, reject) => {
|
|
|
magicJS.http.post({
|
|
|
url: 'https://sunquan.api.ddxq.mobi/api/v2/user/signin/',
|