mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 08:54:08 +08:00
sync
This commit is contained in:
@@ -74,14 +74,6 @@ let lnruns = 0;
|
||||
option = {};
|
||||
await jdPlantBean();
|
||||
await $.wait(2 * 1000);
|
||||
lnrun++;
|
||||
await doHelp();
|
||||
if (lnrun == 3) {
|
||||
console.log(`\n【访问接口次数达到3次,休息一分钟.....】\n`);
|
||||
await $.wait(60 * 1000);
|
||||
lnrun = 0;
|
||||
}
|
||||
await $.wait(3 * 1000);
|
||||
}
|
||||
}
|
||||
if ($.isNode() && allMessage) {
|
||||
@@ -118,6 +110,14 @@ async function jdPlantBean() {
|
||||
awardState = roundList[num - 1].awardState;
|
||||
$.taskList = $.plantBeanIndexResult.data.taskList;
|
||||
subTitle = `【京东昵称】${$.plantBeanIndexResult.data.plantUserInfo.plantNickName}`;
|
||||
lnrun++;
|
||||
await doHelp();
|
||||
if (lnrun == 3) {
|
||||
console.log(`\n【访问接口次数达到3次,休息半分钟.....】\n`);
|
||||
await $.wait(30 * 1000);
|
||||
lnrun = 0;
|
||||
}
|
||||
await $.wait(3 * 1000);
|
||||
} else {
|
||||
console.log(`种豆得豆-初始失败: ${JSON.stringify($.plantBeanIndexResult)}`);
|
||||
}
|
||||
@@ -125,7 +125,7 @@ async function jdPlantBean() {
|
||||
$.logErr(e);
|
||||
const errMsg = `京东账号${$.index} ${$.nickName || $.UserName}\n任务执行异常,请检查执行日志 ‼️‼️`;
|
||||
// if ($.isNode()) await notify.sendNotify(`${$.name}`, errMsg);
|
||||
$.msg($.name, '', `${errMsg}`)
|
||||
//$.msg($.name, '', `${errMsg}`)
|
||||
}
|
||||
}
|
||||
//助力好友
|
||||
@@ -148,9 +148,9 @@ async function doHelp() {
|
||||
await $.wait(30 * 1000);
|
||||
lnruns = 0;
|
||||
}
|
||||
if ($.helpResult && $.helpResult.code === '0') {
|
||||
if ($.helpResult && $.helpResult.code === '0' && $.helpResult.data) {
|
||||
console.log(`助力好友结果: ${JSON.stringify($.helpResult.data.helpShareRes)}`);
|
||||
if ($.helpResult.data.helpShareRes) {
|
||||
if ($.helpResult.data && $.helpResult.data.helpShareRes) {
|
||||
if ($.helpResult.data.helpShareRes.state === '1') {
|
||||
console.log(`助力好友${plantUuid}成功`)
|
||||
console.log(`${$.helpResult.data.helpShareRes.promptText}\n`);
|
||||
|
||||
Reference in New Issue
Block a user