mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
2cba6be537
commit
6473d58e8a
10
jd_dpqd.js
10
jd_dpqd.js
@ -28,12 +28,12 @@ const token = [
|
||||
"325A8EF67EB44F69C4D2A7DE4160E391",
|
||||
"065F571B5F4A0ADC8B8EC592EEB59F93",
|
||||
"64B906CD54B5D49DCA0E57CF1D53F0FB",
|
||||
"3B27B2B9E70249C339D66F27B7E133F0",
|
||||
"9690A770BC8C39BD59ACBD92A958E94B",
|
||||
"342934FF29611CB62EF78EB90CB0AB29",
|
||||
"C5FD1482A207F2CC65570F8FBC492C9A",
|
||||
"748BAE8B0BB9E8F4BBD80527EB42CAFB",
|
||||
"7BDE362C7EC7AD46016A58A0782254C5",
|
||||
"1C963AA3BBBD0396784BD0CA527BCDF8",
|
||||
"C5FD1482A207F2CC65570F8FBC492C9A",
|
||||
"9DCB43BF4CEFD54BBCE2E58BAEA4E2F6",
|
||||
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
||||
"E29627AF30D59CF7FE7B01C63BD9A975",
|
||||
"3C4C874B25439D70DB4176CEF5785B98",
|
||||
@ -41,9 +41,9 @@ const token = [
|
||||
"342934FF29611CB62EF78EB90CB0AB29",
|
||||
"9AC30B59DD4E97D88E20236BBB41DBF9",
|
||||
"3B864BF96848A44E170A26D2791E0AE3",
|
||||
"CAA0FA07FE5FE40329504208C891CF06",
|
||||
"7BDE362C7EC7AD46016A58A0782254C5",
|
||||
"771853736DBD25D6DCDC295E6A5EAB16",
|
||||
"4EC217E55E7DC12F3FB455666A4CA414",
|
||||
"CD09D9C003597D7E923B9F0CA0F191AC",
|
||||
"46D8CB32794AB8EA1F42E83360918961"
|
||||
]
|
||||
|
||||
|
172
jd_mfredrain.js
Normal file
172
jd_mfredrain.js
Normal file
File diff suppressed because one or more lines are too long
52
jd_share.js
Executable file → Normal file
52
jd_share.js
Executable file → Normal file
@ -1,24 +1,41 @@
|
||||
/*
|
||||
关注 https://t.me/okyydsnb
|
||||
7 7 7 7 7 jd_share.js
|
||||
注意控制ck数量
|
||||
*/
|
||||
活动地址为:https://lzkjdz-isv.isvjcloud.com/wxShareActivity/activity/6432842?activityId=xxxxx
|
||||
一共有2个变量
|
||||
jd_fxyl_activityId 活动ID 必需
|
||||
|
||||
const $ = new Env("分享有礼");
|
||||
|
||||
其他变量:
|
||||
OWN_COOKIE_NUM 需要被助力的人数
|
||||
HELP_COOKIE_NUM 助力的人数
|
||||
|
||||
作者:小埋
|
||||
|
||||
cron:1 1 1 1 *
|
||||
============Quantumultx===============
|
||||
[task_local]
|
||||
#LZ分享有礼
|
||||
1 1 1 1 * jd_share.js, tag=LZ分享有礼, enabled=true
|
||||
|
||||
*/
|
||||
const $ = new Env("LZ分享有礼");
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
let cookiesArr = [], cookie = '', message = '';
|
||||
let authorCodeList = [];
|
||||
let ownCookieNum = 1;
|
||||
let ownCookieNum = 3;
|
||||
let helpCookieNum = 5;
|
||||
let isGetAuthorCodeList = true
|
||||
let activityId = '5da58c75d1204bd1a873c568567844a9'
|
||||
let activityId = ''
|
||||
let activityShopId = ''
|
||||
|
||||
if (process.env.OWN_COOKIE_NUM && process.env.OWN_COOKIE_NUM != 4) {
|
||||
if (process.env.HELP_COOKIE_NUM && process.env.HELP_COOKIE_NUM != 5) {
|
||||
helpCookieNum = process.env.HELP_COOKIE_NUM;
|
||||
}
|
||||
if (process.env.OWN_COOKIE_NUM && process.env.OWN_COOKIE_NUM != 3) {
|
||||
ownCookieNum = process.env.OWN_COOKIE_NUM;
|
||||
}
|
||||
if (process.env.ACTIVITY_ID && process.env.ACTIVITY_ID != "") {
|
||||
activityId = process.env.ACTIVITY_ID;
|
||||
if (process.env.jd_fxyl_activityId && process.env.jd_fxyl_activityId != "") {
|
||||
activityId = process.env.jd_fxyl_activityId;
|
||||
}
|
||||
|
||||
if ($.isNode()) {
|
||||
@ -41,6 +58,7 @@ if ($.isNode()) {
|
||||
return;
|
||||
}
|
||||
isGetAuthorCodeList = true;
|
||||
console.log(`【入口:\nhttps://lzkjdz-isv.isvjcloud.com/wxShareActivity/activity/activity?activityId=${activityId}】`)
|
||||
for (let i = 0; i < ownCookieNum; i++) {
|
||||
if (cookiesArr[i]) {
|
||||
cookie = cookiesArr[i]
|
||||
@ -68,13 +86,14 @@ if ($.isNode()) {
|
||||
$.activityShopId = ''
|
||||
$.activityUrl = `https://lzkjdz-isv.isvjcloud.com/wxShareActivity/activity/${$.authorNum}?activityId=${$.activityId}&friendUuid=${encodeURIComponent($.authorCode)}&shareuserid4minipg=null&shopid=${$.activityShopId}`
|
||||
await share();
|
||||
await $.wait(1000)
|
||||
activityShopId = $.venderId;
|
||||
}
|
||||
}
|
||||
isGetAuthorCodeList = false;
|
||||
console.log('需要助力助力码')
|
||||
console.log(authorCodeList)
|
||||
for (let i = 0; i < cookiesArr.length; i++) {
|
||||
for (let i = 0; i < helpCookieNum; i++) {
|
||||
if (cookiesArr[i]) {
|
||||
cookie = cookiesArr[i]
|
||||
originCookie = cookiesArr[i]
|
||||
@ -105,15 +124,14 @@ if ($.isNode()) {
|
||||
for(let i in authorCodeList){
|
||||
$.authorCode = authorCodeList[i]
|
||||
console.log('去助力: '+$.authorCode)
|
||||
|
||||
await share();
|
||||
await $.wait(1000)
|
||||
if ($.errorMessage === '活动太火爆,还是去买买买吧') {
|
||||
break
|
||||
}
|
||||
// await $.wait(2000)
|
||||
|
||||
}
|
||||
}
|
||||
// await $.wait(2000)
|
||||
}
|
||||
for (let i = 0; i < ownCookieNum; i++) {
|
||||
if (cookiesArr[i]) {
|
||||
@ -128,7 +146,7 @@ if ($.isNode()) {
|
||||
$.activityId = activityId
|
||||
$.activityShopId = activityShopId
|
||||
await getPrize();
|
||||
// await $.wait(2000)
|
||||
await $.wait(2000)
|
||||
}
|
||||
}
|
||||
})()
|
||||
@ -149,7 +167,7 @@ async function share() {
|
||||
if ($.token) {
|
||||
await getMyPing();
|
||||
if ($.secretPin) {
|
||||
await $.wait(500)
|
||||
await $.wait(2000)
|
||||
await task('common/accessLogWithAD', `venderId=${$.activityShopId}&code=25&pin=${encodeURIComponent($.secretPin)}&activityId=${$.activityId}&pageUrl=${$.activityUrl}&subType=app&adSource=null`, 1);
|
||||
await task('activityContent', `activityId=${$.activityId}&pin=${encodeURIComponent($.secretPin)}&friendUuid=${encodeURIComponent($.authorCode)}`)
|
||||
} else {
|
||||
@ -239,7 +257,7 @@ function taskUrl(function_id, body, isCommon) {
|
||||
'User-Agent': `jdapp;iPhone;9.5.4;13.6;${$.UUID};network/wifi;ADID/${$.ADID};model/iPhone10,3;addressid/0;appBuild/167668;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1`,
|
||||
Connection: 'keep-alive',
|
||||
Referer: $.activityUrl,
|
||||
Cookie: $.cookie
|
||||
Cookie: cookie
|
||||
},
|
||||
body: body
|
||||
|
||||
|
@ -373,7 +373,12 @@ async function getMyPing(timeout = 500) {
|
||||
$.log(`${JSON.stringify(err)}`);
|
||||
}else {
|
||||
$.data = JSON.parse(data);
|
||||
// console.log(JSON.stringify($.data,null, '\t'));
|
||||
rep_cookies = resp.headers['set-cookie'];
|
||||
// console.log(rep_cookies);
|
||||
r_cookie='';
|
||||
for(var c in rep_cookies){
|
||||
r_cookie += rep_cookies[c].split(" ")[0];
|
||||
}
|
||||
if($.data.result){
|
||||
username=$.data.data.nickname;
|
||||
pin=encodeURIComponent($.data.data.secretPin);
|
||||
|
Loading…
Reference in New Issue
Block a user