mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
84c8dc271c
commit
e77feb8e48
@ -721,16 +721,20 @@ async function showMsg() {
|
||||
}
|
||||
|
||||
if (EnableJxBeans) {
|
||||
if ($.todayinJxBean || $.todayOutJxBean) {
|
||||
ReturnMessage += `【今日喜豆】收${$.todayinJxBean}豆`;
|
||||
if ($.todayOutJxBean != 0) {
|
||||
ReturnMessage += `,支${$.todayOutJxBean}豆`;
|
||||
}
|
||||
ReturnMessage += `\n`;
|
||||
}
|
||||
if ($.inJxBean || $.OutJxBean) {
|
||||
ReturnMessage += `【昨日喜豆】收${$.inJxBean}豆`;
|
||||
if ($.OutJxBean != 0) {
|
||||
ReturnMessage += `,支${$.OutJxBean}豆`;
|
||||
}
|
||||
ReturnMessage += `\n`;
|
||||
}
|
||||
ReturnMessage += `【当前喜豆】${$.xibeanCount}喜豆(≈${($.xibeanCount/ 100).toFixed(2)}元)\n`;
|
||||
strsummary += `【当前喜豆】${$.xibeanCount}豆(≈${($.xibeanCount/ 100).toFixed(2)}元)\n`;
|
||||
}
|
||||
@ -1695,7 +1699,7 @@ function getCoupon() {
|
||||
url: `https://wq.jd.com/activeapi/queryjdcouponlistwithfinance?state=1&wxadd=1&filterswitch=1&_=${Date.now()}&sceneval=2&g_login_type=1&callback=jsonpCBKB&g_ty=ls`,
|
||||
headers: {
|
||||
'authority': 'wq.jd.com',
|
||||
"User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
|
||||
"User-Agent": "jdapp;iPhone;10.1.2;15.0;network/wifi;Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1",
|
||||
'accept': '*/*',
|
||||
'referer': 'https://wqs.jd.com/',
|
||||
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
|
||||
|
@ -26,7 +26,7 @@ let num=0
|
||||
let shopname=''
|
||||
const token = [
|
||||
"374951B8D50E5D4E01E40153413F00E9",
|
||||
"1565B6639C0F5315D41C7D07129EBB9C",
|
||||
"363DF6DA22A436E9566E8F6A176C7BAD",
|
||||
"3949F55A02AA8A345409AFD9821C861F",
|
||||
"C387DE3A3F4381FB3E451F0C40069FE6",
|
||||
"069C121295427F0A7D8FA85B499F72B3",
|
||||
@ -41,7 +41,7 @@ const token = [
|
||||
"F7534A237EC4CFD50B8901BEF08E6FB7",
|
||||
"6F92A6B2AF1D1C6BA2315F12C15194D2",
|
||||
"137B6809356B33FFACA79B8D6115208F",
|
||||
"9112C9042DF613BFAD089EDA19485E86",
|
||||
"120D154DB4799F2F765FE067EE580025",
|
||||
"67D2D5824D043A5C2EA9C53B900B932C",
|
||||
"43FE9201AB1206649B74BE1487A4BB3C",
|
||||
"A3DD0D4F4068F0FA9671937E4CC402CD",
|
||||
|
@ -36,7 +36,7 @@ if ($.isNode()) {
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
message = '';
|
||||
await TotalBean();
|
||||
//await TotalBean();
|
||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
if (!$.isLogin) {
|
||||
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
|
||||
|
File diff suppressed because one or more lines are too long
4
jd_ry.js
4
jd_ry.js
@ -164,9 +164,9 @@ async function run() {
|
||||
if(i.rewardType != 2){
|
||||
let msg = `【京东账号${$.index}】${$.nickName || $.UserName}\n类型:${i.rewardType} ${i.rewardName} ${i.limitStr}\n`
|
||||
if ($.isNode()){
|
||||
await notify.sendNotify(`${$.name}`, `${msg}`);
|
||||
//await notify.sendNotify(`${$.name}`, `${msg}`);
|
||||
}else{
|
||||
$.msg($.name, ``, `${msg}`);
|
||||
//$.msg($.name, ``, `${msg}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
||||
$.index = i + 1;
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
await TotalBean();
|
||||
//await TotalBean();
|
||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
if (!$.isLogin) {
|
||||
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
|
||||
|
@ -545,7 +545,7 @@ function try_MyTrials(page, selected) {
|
||||
'origin': 'https://prodev.m.jd.com',
|
||||
'User-Agent': 'jdapp;iPhone;10.3.4;;;M/5.0;appBuild/167945;jdSupportDarkMode/1;;;Mozilla/5.0 (iPhone; CPU iPhone OS 15_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1;',
|
||||
'referer': 'https://prodev.m.jd.com/',
|
||||
'cookie': `${$.cookie} __jda=1.1.1.1.1.1;`
|
||||
'cookie': `${$.cookie} __jda=1.0;`
|
||||
},
|
||||
}
|
||||
$.post(options, (err, resp, data) => {
|
||||
@ -586,7 +586,7 @@ function taskurl_xh(appid, functionId, body = JSON.stringify({})) {
|
||||
return {
|
||||
"url": `${URL}?appid=${appid}&functionId=${functionId}&clientVersion=10.3.4&client=wh5&body=${encodeURIComponent(body)}`,
|
||||
'headers': {
|
||||
'Cookie': `${$.cookie} __jda=1.1.1.1.1.1;`,
|
||||
'Cookie': `${$.cookie} __jda=1.0;`,
|
||||
'user-agent': 'jdapp;iPhone;10.1.2;15.0;ff2caa92a8529e4788a34b3d8d4df66d9573f499;network/wifi;model/iPhone13,4;addressid/2074196292;appBuild/167802;jdSupportDarkMode/1;Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1',
|
||||
'Referer': 'https://prodev.m.jd.com/',
|
||||
'origin': 'https://prodev.m.jd.com/',
|
||||
|
@ -68,7 +68,7 @@ let isGetbody = typeof $request !== 'undefined';
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
nickname = `${$.nickName || $.UserName}`;
|
||||
await TotalBean();
|
||||
//await TotalBean();
|
||||
console.log(`\n开始【京东账号${$.index}】${$.nickName || $.UserName}\n`);
|
||||
if (!$.isLogin) {
|
||||
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
|
||||
|
Loading…
Reference in New Issue
Block a user