mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-19 20:48:03 +08:00
update
This commit is contained in:
parent
83d7dde82f
commit
5b3d97e155
16
jd_dpqd.js
16
jd_dpqd.js
@ -25,23 +25,25 @@ let vender=''
|
||||
let num=0
|
||||
let shopname=''
|
||||
const token = [
|
||||
"EB750C9CD1AF68C5E20462756BD2F58F",
|
||||
"D54444DD31EDE4874E9AD700B76427A3",
|
||||
"065F571B5F4A0ADC8B8EC592EEB59F93",
|
||||
"B15846FF6A6380A633BD9534717B401B",
|
||||
"9690A770BC8C39BD59ACBD92A958E94B",
|
||||
"9D1D95A028B3DB5F3635FE9134152084",
|
||||
"ACE30EA88B09840F93FA47519C5D6ED8",
|
||||
"3968E5EB1C28E3CBF69337BDE60093F6",
|
||||
"4A748EF63B85D9CB06B13E7CA2524ABD",
|
||||
"F7BA67EAF9BBBE4D27D3C333580562F4",
|
||||
"1C963AA3BBBD0396784BD0CA527BCDF8",
|
||||
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
||||
"3676E6F564E5D04A8FC8D045BAD0B623",
|
||||
"9DCB43BF4CEFD54BBCE2E58BAEA4E2F6",
|
||||
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
||||
"E29627AF30D59CF7FE7B01C63BD9A975",
|
||||
"3C4C874B25439D70DB4176CEF5785B98",
|
||||
"22E454E7DA34CBA96DFAB150C2882193",
|
||||
"FCA20BDEA1AE7A2AE5BA6EA88C873906",
|
||||
"9AC30B59DD4E97D88E20236BBB41DBF9",
|
||||
"3B864BF96848A44E170A26D2791E0AE3",
|
||||
"771853736DBD25D6DCDC295E6A5EAB16",
|
||||
"46D8CB32794AB8EA1F42E83360918961"
|
||||
"46D8CB32794AB8EA1F42E83360918961",
|
||||
"9DCB43BF4CEFD54BBCE2E58BAEA4E2F6",
|
||||
"3C4C874B25439D70DB4176CEF5785B98"
|
||||
]
|
||||
|
||||
if ($.isNode()) {
|
||||
|
@ -10,17 +10,17 @@
|
||||
|
||||
=====================================Quantumult X=================================
|
||||
[task_local]
|
||||
1 7-21/2 * * * https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_plantBean.js, tag=种豆得豆, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdzd.png, enabled=true
|
||||
1 7-21/2 * * * https://raw.githubusercontent.com/KingRan/JDJB/main/jd_plantBean.js, tag=种豆得豆, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdzd.png, enabled=true
|
||||
|
||||
=====================================Loon================================
|
||||
[Script]
|
||||
cron "1 7-21/2 * * *" script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_plantBean.js,tag=京东种豆得豆
|
||||
cron "1 7-21/2 * * *" script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_plantBean.js,tag=京东种豆得豆
|
||||
|
||||
======================================Surge==========================
|
||||
京东种豆得豆 = type=cron,cronexp="1 7-21/2 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_plantBean.js
|
||||
京东种豆得豆 = type=cron,cronexp="1 7-21/2 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_plantBean.js
|
||||
|
||||
====================================小火箭=============================
|
||||
京东种豆得豆 = type=cron,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_plantBean.js, cronexpr="1 7-21/2 * * *", timeout=3600, enable=true
|
||||
京东种豆得豆 = type=cron,script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_plantBean.js, cronexpr="1 7-21/2 * * *", timeout=3600, enable=true
|
||||
|
||||
*/
|
||||
const $ = new Env('种豆得豆');
|
||||
@ -41,7 +41,6 @@ let roundList = [];
|
||||
let awardState = '';//上期活动的京豆是否收取
|
||||
let randomCount = $.isNode() ? 20 : 5;
|
||||
let num;
|
||||
let llerror=false;
|
||||
$.newShareCode = [];
|
||||
let NowHour = new Date().getHours();
|
||||
let lnrun = 0;
|
||||
@ -94,8 +93,11 @@ async function jdPlantBean() {
|
||||
try {
|
||||
console.log(`获取任务及基本信息`)
|
||||
await plantBeanIndex();
|
||||
if(llerror)
|
||||
return;
|
||||
if ($.plantBeanIndexResult.errorCode === 'PB101') {
|
||||
console.log(`\n活动太火爆了,还是去买买买吧!\n`)
|
||||
return
|
||||
}
|
||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||
for (let i = 0; i < $.plantBeanIndexResult.data.roundList.length; i++) {
|
||||
if ($.plantBeanIndexResult.data.roundList[i].roundState === "2") {
|
||||
num = i
|
||||
@ -103,11 +105,9 @@ async function jdPlantBean() {
|
||||
}
|
||||
}
|
||||
// console.log(plantBeanIndexResult.data.taskList);
|
||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||
const shareUrl = $.plantBeanIndexResult.data.jwordShareInfo.shareUrl
|
||||
$.myPlantUuid = getParam(shareUrl, 'plantUuid')
|
||||
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.myPlantUuid}\n`);
|
||||
jdPlantBeanShareArr.push($.myPlantUuid)
|
||||
|
||||
roundList = $.plantBeanIndexResult.data.roundList;
|
||||
currentRoundId = roundList[num].roundId;//本期的roundId
|
||||
@ -175,8 +175,6 @@ async function doGetReward() {
|
||||
}
|
||||
async function doCultureBean() {
|
||||
await plantBeanIndex();
|
||||
if(llerror)
|
||||
return;
|
||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||
const plantBeanRound = $.plantBeanIndexResult.data.roundList[num]
|
||||
if (plantBeanRound.roundState === '2') {
|
||||
@ -407,8 +405,6 @@ async function doTask() {
|
||||
function showTaskProcess() {
|
||||
return new Promise(async resolve => {
|
||||
await plantBeanIndex();
|
||||
if(llerror)
|
||||
return;
|
||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||
$.taskList = $.plantBeanIndexResult.data.taskList;
|
||||
if ($.taskList && $.taskList.length > 0) {
|
||||
@ -533,39 +529,7 @@ async function helpShare(plantUuid) {
|
||||
console.log(`助力结果的code:${$.helpResult && $.helpResult.code}`);
|
||||
}
|
||||
async function plantBeanIndex() {
|
||||
llerror=false;
|
||||
$.plantBeanIndexResult = await request('plantBeanIndex'); //plantBeanIndexBody
|
||||
if ($.plantBeanIndexResult.errorCode === 'PB101') {
|
||||
console.log(`\n活动太火爆了,还是去买买买吧!\n`)
|
||||
llerror=true;
|
||||
return
|
||||
}
|
||||
if ($.plantBeanIndexResult.errorCode) {
|
||||
console.log(`获取任务及基本信息出错,10秒后重试\n`)
|
||||
await $.wait(10000);
|
||||
$.plantBeanIndexResult = await request('plantBeanIndex');
|
||||
if ($.plantBeanIndexResult.errorCode === 'PB101') {
|
||||
console.log(`\n活动太火爆了,还是去买买买吧!\n`)
|
||||
llerror=true;
|
||||
return
|
||||
}
|
||||
}
|
||||
if ($.plantBeanIndexResult.errorCode) {
|
||||
console.log(`获取任务及基本信息出错,30秒后重试\n`)
|
||||
await $.wait(30000);
|
||||
$.plantBeanIndexResult = await request('plantBeanIndex');
|
||||
if ($.plantBeanIndexResult.errorCode === 'PB101') {
|
||||
console.log(`\n活动太火爆了,还是去买买买吧!\n`)
|
||||
llerror=true;
|
||||
return
|
||||
}
|
||||
}
|
||||
if ($.plantBeanIndexResult.errorCode) {
|
||||
console.log(`获取任务及基本信息失败,活动异常,换个时间再试试吧....`)
|
||||
console.log("错误代码;" + $.plantBeanIndexResult.errorCode)
|
||||
llerror=true;
|
||||
return
|
||||
}
|
||||
$.plantBeanIndexResult = await request('plantBeanIndex');//plantBeanIndexBody
|
||||
}
|
||||
function requireConfig() {
|
||||
return new Promise(resolve => {
|
||||
|
11
jd_vivo.js
11
jd_vivo.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user