|
|
@@ -4,7 +4,7 @@
|
|
|
PC版网盘登录地址:
|
|
|
https://pan.quark.cn/
|
|
|
|
|
|
-查看链接 https://drive-pc.quark.cn/1/clouddrive/file/sort 抓取cookie
|
|
|
+查看链接 https://drive-pc.quark.cn/1/clouddrive/file/sort 抓取cookie 然后去boxjs里填写 quark_cookie
|
|
|
|
|
|
*******************************
|
|
|
|
|
|
@@ -29,7 +29,7 @@ async function Main() {
|
|
|
if(userCookie){
|
|
|
await signIn(userCookie);
|
|
|
} else {
|
|
|
- magicJS.notification.appendNotifyInfo(`❌缺少Cookie,请到PC上抓取Cookie去boxjs里填写!`);
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌缺少Cookie,请到PC上抓取Cookie!`);
|
|
|
}
|
|
|
magicJS.notification.msg('');
|
|
|
}
|
|
|
@@ -91,7 +91,7 @@ async function signIn(cookie){
|
|
|
let amount = sign["sign_daily_reward"] / (1024 * 1024);
|
|
|
let progress = round(sign["sign_progress"] / sign["sign_target"] * 100, 2);
|
|
|
magicJS.logger.info(`- 今日已签到获取${amount}MB,进度${progress}%`);
|
|
|
- magicJS.notification.appendNotifyInfo(`🎉-今日已签到获取${amount}MB,进度${progress}%`);
|
|
|
+ magicJS.notification.appendNotifyInfo(`🎉今日已签到获取${amount}MB,进度${progress}%`);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -122,18 +122,18 @@ async function signIn(cookie){
|
|
|
if(body.code == 0){
|
|
|
let amount = body.data.sign_daily_reward / 2048;
|
|
|
magicJS.logger.info(`- 签到成功,获取到${amount}MB!`);
|
|
|
- magicJS.notification.appendNotifyInfo(`🎉-签到成功,获取到${amount}MB!`);
|
|
|
+ magicJS.notification.appendNotifyInfo(`🎉签到成功,获取到${amount}MB!`);
|
|
|
return amount;
|
|
|
}
|
|
|
} catch (e) {
|
|
|
magicJS.logger.error(e);
|
|
|
magicJS.logger.info("- 签到失败!");
|
|
|
- magicJS.notification.appendNotifyInfo(`❌-签到失败!`);
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌签到失败!`);
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
const msg = `签到异常\n${JSON.stringify(err)}`;
|
|
|
magicJS.logger.error(msg);
|
|
|
- magicJS.notification.appendNotifyInfo(`❌-签到异常!`);
|
|
|
+ magicJS.notification.appendNotifyInfo(`❌签到异常!`);
|
|
|
});
|
|
|
}
|
|
|
|