mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-05-07 03:48:44 +08:00
6dy
This commit is contained in:
parent
5de5eb20cc
commit
83d537cbb3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
||||
DYJSHAREID = 'xxx&xxx&xxx'
|
||||
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
|
||||
By: https://github.com/6dylan6/jdpro
|
||||
updatetime: 2022/12/2
|
||||
updatetime: 2022/12/4 修复助力,实际没黑
|
||||
*/
|
||||
|
||||
const $ = new Env('特价版大赢家');
|
||||
@ -141,7 +141,7 @@ let helpinfo = {};
|
||||
})
|
||||
|
||||
function getinfo(xc) {
|
||||
let opt= {
|
||||
let opt = {
|
||||
url: `https://api.m.jd.com/api?g_ty=h5&g_tk=&appCode=msc588d6d5&body=%7B%22activeId%22%3A%2263526d8f5fe613a6adb48f03%22%2C%22isFirst%22%3A1%2C%22operType%22%3A1%7D&appid=jdlt_h5&client=jxh5&functionId=makemoneyshop_home&clientVersion=1.2.5&h5st=20221202224421183%3B5zi6yg6hy6dijtc6%3B638ee%3Btk02waef91cf118n77Hw3bHueBsVVy52Wbcx9h4HMPM7fpi9ntRoot7vaa118bRqqEnduYVLqW8kyzHpNsDp5PtrZ8tJ%3B8e13afd153316da1c4878705d9e1f17b27db283c%3B400%3B1669992261183%3Bf28308408a6bad45ead939c02e9cf1e489ad7a120db68c73bdee607bdb6db9daaf6fd9e2d4b87320f4ec869d11fb7fa97ea7bffc29059dfb373214547287d0a2f8d2de03200d84c4776d0464313a08e3488339db94ee9194cfb8237a7678d9020d0c6d9df83ea6c18193626f396ff6f9d41ff0a831b19868640ee15d264ac55bdd144f2a8323f8168cb761f298ab19b00bc20f917401a5f65df079011591dba83f9ee65e3fc211cbadb9211443680603&loginType=2&sceneval=2`,
|
||||
headers: {
|
||||
'Origin': 'https://wq.jd.com',
|
||||
@ -234,15 +234,24 @@ function Award(id) {
|
||||
|
||||
|
||||
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) => {
|
||||
$.get(taskUrl('makemoneyshop/guesthelp', `activeId=63526d8f5fe613a6adb48f03&shareId=${shareid}&_stk=activeId,shareId&_ste=1`), async (err, resp, data) => {
|
||||
$.get(opt, async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
console.log(` API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
let tostr = data.match(/\((\{.*?\})\)/)[1];
|
||||
data = eval('(' + tostr + ')');
|
||||
data = JSON.parse(data);
|
||||
if (data.code == 0) {
|
||||
console.log('助力成功!');
|
||||
helpinfo[$.UserName].nohelp = 1;
|
||||
@ -278,7 +287,7 @@ function taskUrl(fn, body) {
|
||||
url: `https://wq.jd.com/${fn}?g_ty=h5&g_tk=&appCode=msc588d6d5&${body}&h5st=&sceneval=2&callback=__jsonp1667344808184`,
|
||||
headers: {
|
||||
'Origin': 'https://wq.jd.com',
|
||||
'Referer': 'https://wqs.jd.com/sns/202210/20/make-money-shop/index.html?activeId=63526d8f5fe613a6adb48f03',
|
||||
'Referer': 'https://wqs.jd.com/',
|
||||
'User-Agent': UA,
|
||||
'Cookie': cookie
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user