update
This commit is contained in:
@ -61,7 +61,7 @@ if ($.isNode()) {
|
|||||||
.catch((e) => $.logErr(e))
|
.catch((e) => $.logErr(e))
|
||||||
.finally(() => $.done())
|
.finally(() => $.done())
|
||||||
async function execSign() {
|
async function execSign() {
|
||||||
console.log(`\n开始执行脚本签到,请稍等`)
|
console.log(`\n开始执行 ${$.name} 签到,请稍等...\n`);
|
||||||
try {
|
try {
|
||||||
// if (notify.SCKEY || notify.BARK_PUSH || notify.DD_BOT_TOKEN || (notify.TG_BOT_TOKEN && notify.TG_USER_ID) || notify.IGOT_PUSH_KEY || notify.QQ_SKEY) {
|
// if (notify.SCKEY || notify.BARK_PUSH || notify.DD_BOT_TOKEN || (notify.TG_BOT_TOKEN && notify.TG_USER_ID) || notify.IGOT_PUSH_KEY || notify.QQ_SKEY) {
|
||||||
// await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
// await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
||||||
@ -73,7 +73,7 @@ async function execSign() {
|
|||||||
// }
|
// }
|
||||||
await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
await exec(`${process.execPath} ${JD_DailyBonusPath} >> ${resultPath}`);
|
||||||
const notifyContent = await fs.readFileSync(resultPath, "utf8");
|
const notifyContent = await fs.readFileSync(resultPath, "utf8");
|
||||||
console.log(`👇👇👇👇👇👇👇👇👇👇👇LOG记录👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆LOG记录👆👆👆👆👆👆👆👆👆👆👆`);
|
console.error(`👇👇👇👇👇👇👇👇👇👇👇签到详情👇👇👇👇👇👇👇👇👇👇👇\n${notifyContent}\n👆👆👆👆👆👆👆👆👆签到详情👆👆👆👆👆👆👆👆👆👆👆`);
|
||||||
// await exec("node JD_DailyBonus.js", { stdio: "inherit" });
|
// await exec("node JD_DailyBonus.js", { stdio: "inherit" });
|
||||||
// console.log('执行完毕', new Date(new Date().getTime() + 8 * 3600000).toLocaleDateString())
|
// console.log('执行完毕', new Date(new Date().getTime() + 8 * 3600000).toLocaleDateString())
|
||||||
//发送通知
|
//发送通知
|
||||||
@ -106,7 +106,7 @@ async function execSign() {
|
|||||||
}
|
}
|
||||||
//运行完成后,删除下载的文件
|
//运行完成后,删除下载的文件
|
||||||
await deleteFile(resultPath);//删除result.txt
|
await deleteFile(resultPath);//删除result.txt
|
||||||
console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName}京豆签到完成*******************\n\n`);
|
console.log(`\n\n*****************${new Date(new Date().getTime()).toLocaleString('zh', {hour12: false})} 京东账号${$.index} ${$.nickName || $.UserName} ${$.name}完成*******************\n\n`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("京东签到脚本执行异常:" + e);
|
console.log("京东签到脚本执行异常:" + e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user