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'
|
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/2
|
updatetime: 2022/12/4 修复助力,实际没黑
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env('特价版大赢家');
|
const $ = new Env('特价版大赢家');
|
||||||
@ -234,15 +234,24 @@ 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(taskUrl('makemoneyshop/guesthelp', `activeId=63526d8f5fe613a6adb48f03&shareId=${shareid}&_stk=activeId,shareId&_ste=1`), async (err, resp, data) => {
|
$.get(opt, 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 {
|
||||||
let tostr = data.match(/\((\{.*?\})\)/)[1];
|
data = JSON.parse(data);
|
||||||
data = eval('(' + tostr + ')');
|
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
console.log('助力成功!');
|
console.log('助力成功!');
|
||||||
helpinfo[$.UserName].nohelp = 1;
|
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`,
|
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/sns/202210/20/make-money-shop/index.html?activeId=63526d8f5fe613a6adb48f03',
|
'Referer': 'https://wqs.jd.com/',
|
||||||
'User-Agent': UA,
|
'User-Agent': UA,
|
||||||
'Cookie': cookie
|
'Cookie': cookie
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user