mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +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 num=0
|
||||||
let shopname=''
|
let shopname=''
|
||||||
const token = [
|
const token = [
|
||||||
"EB750C9CD1AF68C5E20462756BD2F58F",
|
"D54444DD31EDE4874E9AD700B76427A3",
|
||||||
"065F571B5F4A0ADC8B8EC592EEB59F93",
|
"065F571B5F4A0ADC8B8EC592EEB59F93",
|
||||||
"B15846FF6A6380A633BD9534717B401B",
|
"B15846FF6A6380A633BD9534717B401B",
|
||||||
"9690A770BC8C39BD59ACBD92A958E94B",
|
"ACE30EA88B09840F93FA47519C5D6ED8",
|
||||||
"9D1D95A028B3DB5F3635FE9134152084",
|
"3968E5EB1C28E3CBF69337BDE60093F6",
|
||||||
"4A748EF63B85D9CB06B13E7CA2524ABD",
|
"4A748EF63B85D9CB06B13E7CA2524ABD",
|
||||||
"F7BA67EAF9BBBE4D27D3C333580562F4",
|
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
||||||
"1C963AA3BBBD0396784BD0CA527BCDF8",
|
"3676E6F564E5D04A8FC8D045BAD0B623",
|
||||||
"9DCB43BF4CEFD54BBCE2E58BAEA4E2F6",
|
"9DCB43BF4CEFD54BBCE2E58BAEA4E2F6",
|
||||||
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
||||||
"E29627AF30D59CF7FE7B01C63BD9A975",
|
"E29627AF30D59CF7FE7B01C63BD9A975",
|
||||||
"3C4C874B25439D70DB4176CEF5785B98",
|
"3C4C874B25439D70DB4176CEF5785B98",
|
||||||
"22E454E7DA34CBA96DFAB150C2882193",
|
"FCA20BDEA1AE7A2AE5BA6EA88C873906",
|
||||||
"9AC30B59DD4E97D88E20236BBB41DBF9",
|
"9AC30B59DD4E97D88E20236BBB41DBF9",
|
||||||
"3B864BF96848A44E170A26D2791E0AE3",
|
"3B864BF96848A44E170A26D2791E0AE3",
|
||||||
"771853736DBD25D6DCDC295E6A5EAB16",
|
"771853736DBD25D6DCDC295E6A5EAB16",
|
||||||
"46D8CB32794AB8EA1F42E83360918961"
|
"46D8CB32794AB8EA1F42E83360918961",
|
||||||
|
"9DCB43BF4CEFD54BBCE2E58BAEA4E2F6",
|
||||||
|
"3C4C874B25439D70DB4176CEF5785B98"
|
||||||
]
|
]
|
||||||
|
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
|
@ -10,17 +10,17 @@
|
|||||||
|
|
||||||
=====================================Quantumult X=================================
|
=====================================Quantumult X=================================
|
||||||
[task_local]
|
[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================================
|
=====================================Loon================================
|
||||||
[Script]
|
[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==========================
|
======================================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('种豆得豆');
|
const $ = new Env('种豆得豆');
|
||||||
@ -41,7 +41,6 @@ let roundList = [];
|
|||||||
let awardState = '';//上期活动的京豆是否收取
|
let awardState = '';//上期活动的京豆是否收取
|
||||||
let randomCount = $.isNode() ? 20 : 5;
|
let randomCount = $.isNode() ? 20 : 5;
|
||||||
let num;
|
let num;
|
||||||
let llerror=false;
|
|
||||||
$.newShareCode = [];
|
$.newShareCode = [];
|
||||||
let NowHour = new Date().getHours();
|
let NowHour = new Date().getHours();
|
||||||
let lnrun = 0;
|
let lnrun = 0;
|
||||||
@ -94,8 +93,11 @@ async function jdPlantBean() {
|
|||||||
try {
|
try {
|
||||||
console.log(`获取任务及基本信息`)
|
console.log(`获取任务及基本信息`)
|
||||||
await plantBeanIndex();
|
await plantBeanIndex();
|
||||||
if(llerror)
|
if ($.plantBeanIndexResult.errorCode === 'PB101') {
|
||||||
return;
|
console.log(`\n活动太火爆了,还是去买买买吧!\n`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||||
for (let i = 0; i < $.plantBeanIndexResult.data.roundList.length; i++) {
|
for (let i = 0; i < $.plantBeanIndexResult.data.roundList.length; i++) {
|
||||||
if ($.plantBeanIndexResult.data.roundList[i].roundState === "2") {
|
if ($.plantBeanIndexResult.data.roundList[i].roundState === "2") {
|
||||||
num = i
|
num = i
|
||||||
@ -103,11 +105,9 @@ async function jdPlantBean() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(plantBeanIndexResult.data.taskList);
|
// console.log(plantBeanIndexResult.data.taskList);
|
||||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
|
||||||
const shareUrl = $.plantBeanIndexResult.data.jwordShareInfo.shareUrl
|
const shareUrl = $.plantBeanIndexResult.data.jwordShareInfo.shareUrl
|
||||||
$.myPlantUuid = getParam(shareUrl, 'plantUuid')
|
$.myPlantUuid = getParam(shareUrl, 'plantUuid')
|
||||||
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.myPlantUuid}\n`);
|
console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.myPlantUuid}\n`);
|
||||||
jdPlantBeanShareArr.push($.myPlantUuid)
|
|
||||||
|
|
||||||
roundList = $.plantBeanIndexResult.data.roundList;
|
roundList = $.plantBeanIndexResult.data.roundList;
|
||||||
currentRoundId = roundList[num].roundId;//本期的roundId
|
currentRoundId = roundList[num].roundId;//本期的roundId
|
||||||
@ -175,8 +175,6 @@ async function doGetReward() {
|
|||||||
}
|
}
|
||||||
async function doCultureBean() {
|
async function doCultureBean() {
|
||||||
await plantBeanIndex();
|
await plantBeanIndex();
|
||||||
if(llerror)
|
|
||||||
return;
|
|
||||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||||
const plantBeanRound = $.plantBeanIndexResult.data.roundList[num]
|
const plantBeanRound = $.plantBeanIndexResult.data.roundList[num]
|
||||||
if (plantBeanRound.roundState === '2') {
|
if (plantBeanRound.roundState === '2') {
|
||||||
@ -407,8 +405,6 @@ async function doTask() {
|
|||||||
function showTaskProcess() {
|
function showTaskProcess() {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
await plantBeanIndex();
|
await plantBeanIndex();
|
||||||
if(llerror)
|
|
||||||
return;
|
|
||||||
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
|
||||||
$.taskList = $.plantBeanIndexResult.data.taskList;
|
$.taskList = $.plantBeanIndexResult.data.taskList;
|
||||||
if ($.taskList && $.taskList.length > 0) {
|
if ($.taskList && $.taskList.length > 0) {
|
||||||
@ -533,39 +529,7 @@ async function helpShare(plantUuid) {
|
|||||||
console.log(`助力结果的code:${$.helpResult && $.helpResult.code}`);
|
console.log(`助力结果的code:${$.helpResult && $.helpResult.code}`);
|
||||||
}
|
}
|
||||||
async function plantBeanIndex() {
|
async function plantBeanIndex() {
|
||||||
llerror=false;
|
$.plantBeanIndexResult = await request('plantBeanIndex');//plantBeanIndexBody
|
||||||
$.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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function requireConfig() {
|
function requireConfig() {
|
||||||
return new Promise(resolve => {
|
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