mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-05-07 03:48:44 +08:00
update
This commit is contained in:
parent
898e358183
commit
9f45d206f5
File diff suppressed because it is too large
Load Diff
323
gua_jtc.js
Normal file
323
gua_jtc.js
Normal file
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
|||||||
DYJSHAREID = 'xxx&xxx&xxx'
|
DYJSHAREID = 'xxx&xxx&xxx'
|
||||||
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
|
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
|
||||||
By: https://github.com/6dylan6/jdpro
|
By: https://github.com/6dylan6/jdpro
|
||||||
updatetime: 2022/12/4 修复助力,实际没黑
|
updatetime: 2022/12/6 老接口
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env('特价版大赢家');
|
const $ = new Env('特价版大赢家');
|
||||||
@ -78,7 +78,7 @@ let helpinfo = {};
|
|||||||
helpnum = 0;
|
helpnum = 0;
|
||||||
if ($.index === m) { console.log('已无账号可用于助力!结束\n'); break };
|
if ($.index === m) { console.log('已无账号可用于助力!结束\n'); break };
|
||||||
for (let i = k; i < m; i++) {
|
for (let i = k; i < m; i++) {
|
||||||
if (helpnum == 10) { console.log('助力已满,跳出!\n'); k = i; break };
|
if (helpnum == 20) { console.log('助力已满,跳出!\n'); k = i; break };
|
||||||
if ($.fullhelp) { console.log('助力已满,跳出!\n'); k = i - 1; break };
|
if ($.fullhelp) { console.log('助力已满,跳出!\n'); k = i - 1; break };
|
||||||
if (cookiesArr[i]) {
|
if (cookiesArr[i]) {
|
||||||
cookie = cookiesArr[i];
|
cookie = cookiesArr[i];
|
||||||
@ -234,24 +234,15 @@ function Award(id) {
|
|||||||
|
|
||||||
|
|
||||||
function help(shareid) {
|
function help(shareid) {
|
||||||
let body = { "activeId": "63526d8f5fe613a6adb48f03", "shareId": `${shareid}`, "operType": 1 };
|
|
||||||
let opt = {
|
|
||||||
url: `https://api.m.jd.com/api?g_ty=h5&g_tk=&appCode=msc588d6d5&body=${encodeURIComponent(JSON.stringify(body))}&appid=jdlt_h5&client=jxh5&functionId=makemoneyshop_guesthelp&clientVersion=1.2.5&h5st=&loginType=2&sceneval=2`,
|
|
||||||
headers: {
|
|
||||||
'Origin': 'https://wq.jd.com',
|
|
||||||
'Referer': 'https://wqs.jd.com/',
|
|
||||||
'User-Agent': UA,
|
|
||||||
'Cookie': cookie
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
$.get(opt, async (err, resp, data) => {
|
$.get(taskUrl('makemoneyshop/guesthelp', `activeId=63526d8f5fe613a6adb48f03&shareId=${shareid}&_stk=activeId,shareId&_ste=1`), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
console.log(` API请求失败,请检查网路重试`)
|
console.log(` API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
data = JSON.parse(data);
|
let tostr = data.match(/\((\{.*?\})\)/)[1];
|
||||||
|
data = eval('(' + tostr + ')');
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
console.log('助力成功!');
|
console.log('助力成功!');
|
||||||
helpinfo[$.UserName].nohelp = 1;
|
helpinfo[$.UserName].nohelp = 1;
|
||||||
@ -268,7 +259,7 @@ function help(shareid) {
|
|||||||
} else if (data.code === 1008) {
|
} else if (data.code === 1008) {
|
||||||
console.log('今日无助力次数了!');
|
console.log('今日无助力次数了!');
|
||||||
} else if (data.msg.indexOf('火爆') > -1) {
|
} else if (data.msg.indexOf('火爆') > -1) {
|
||||||
console.log('此CK助力可能黑了!');
|
console.log('火爆!!!');
|
||||||
} else {
|
} else {
|
||||||
console.log(data.msg);
|
console.log(data.msg);
|
||||||
}
|
}
|
||||||
@ -287,7 +278,7 @@ function taskUrl(fn, body) {
|
|||||||
url: `https://wq.jd.com/${fn}?g_ty=h5&g_tk=&appCode=msc588d6d5&${body}&h5st=&sceneval=2&callback=__jsonp1667344808184`,
|
url: `https://wq.jd.com/${fn}?g_ty=h5&g_tk=&appCode=msc588d6d5&${body}&h5st=&sceneval=2&callback=__jsonp1667344808184`,
|
||||||
headers: {
|
headers: {
|
||||||
'Origin': 'https://wq.jd.com',
|
'Origin': 'https://wq.jd.com',
|
||||||
'Referer': 'https://wqs.jd.com/',
|
'Referer': 'https://wqs.jd.com/sns/202210/20/make-money-shop/index.html?activeId=63526d8f5fe613a6adb48f03',
|
||||||
'User-Agent': UA,
|
'User-Agent': UA,
|
||||||
'Cookie': cookie
|
'Cookie': cookie
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user