mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-28 22:08:45 +08:00
6dy
This commit is contained in:
parent
55ac6ca451
commit
56ff022f4f
1
function/dylany.js
Normal file
1
function/dylany.js
Normal file
File diff suppressed because one or more lines are too long
82
jd_farm_automation.js
Normal file
82
jd_farm_automation.js
Normal file
@ -0,0 +1,82 @@
|
||||
//20 8 10 4 * jd_farm_automation.js
|
||||
|
||||
console.log('默认种2级,如需调整请设置变量 M_JD_FARM_LEVEL\n使用率不高,指定(desi)账号运行\n')
|
||||
const {Env} = require('./function/magic');
|
||||
const $ = new Env('农场自动种植兑换');
|
||||
let level = process.env.M_JD_FARM_LEVEL ? process.env.M_JD_FARM_LEVEL * 1 : 2
|
||||
$.logic = async function () {
|
||||
let info = await api('initForFarm',
|
||||
{"version": 11, "channel": 3, "babelChannel": 0});
|
||||
if (info.code !== '0') {
|
||||
$.log('可能没开通农场或者黑透了!!!')
|
||||
return
|
||||
}
|
||||
if (info.farmUserPro.treeState === 1) {
|
||||
return
|
||||
}
|
||||
if (info.farmUserPro.treeState === 2) {
|
||||
await $.wait(1000, 3000)
|
||||
$.log(`${info.farmUserPro.name},种植时间:${$.formatDate(
|
||||
info.farmUserPro.createTime)}`);
|
||||
//成熟了
|
||||
let coupon = await api('gotCouponForFarm',
|
||||
{"version": 11, "channel": 3, "babelChannel": 0});
|
||||
$.log(coupon)
|
||||
info = await api('initForFarm',
|
||||
{"version": 11, "channel": 3, "babelChannel": 0});
|
||||
}
|
||||
if (info.farmUserPro.treeState === 3) {
|
||||
let hongBao = info.myHongBaoInfo.hongBao;
|
||||
$.putMsg(`已兑换${hongBao.discount}红包,${$.formatDate(hongBao.endTime)}过期`)
|
||||
}
|
||||
|
||||
let element = info.farmLevelWinGoods[level][0] || 0;
|
||||
await $.wait(1000, 3000)
|
||||
if (element) {
|
||||
info = await api('choiceGoodsForFarm', {
|
||||
"imageUrl": '',
|
||||
"nickName": '',
|
||||
"shareCode": '',
|
||||
"goodsType": element.type,
|
||||
"type": "0",
|
||||
"version": 11,
|
||||
"channel": 3,
|
||||
"babelChannel": 0
|
||||
});
|
||||
if (info.code * 1 === 0) {
|
||||
$.putMsg(`\n再次种植【${info.farmUserPro.name}】`)
|
||||
}
|
||||
let a = await api('gotStageAwardForFarm',
|
||||
{"type": "4", "version": 11, "channel": 3, "babelChannel": 0});
|
||||
let b = await api('waterGoodForFarm',
|
||||
{"type": "", "version": 11, "channel": 3, "babelChannel": 0});
|
||||
let c = await api('gotStageAwardForFarm',
|
||||
{"type": "1", "version": 11, "channel": 3, "babelChannel": 0});
|
||||
}else{
|
||||
$.log('种子已抢完,下次在来!!!\n')
|
||||
}
|
||||
};
|
||||
|
||||
$.run({wait: [2000, 3000]}).catch(reason => $.log(reason));
|
||||
|
||||
// noinspection DuplicatedCode
|
||||
async function api(fn, body) {
|
||||
let url = `https://api.m.jd.com/client.action?functionId=${fn}&body=${JSON.stringify(
|
||||
body)}&client=apple&clientVersion=10.0.4&osVersion=13.7&appid=wh5&loginType=2&loginWQBiz=interact`
|
||||
//↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓请求头↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
|
||||
let headers = {
|
||||
"Cookie": $.cookie,
|
||||
"Connection": "keep-alive",
|
||||
"Accept": "*/*",
|
||||
"Host": "api.m.jd.com",
|
||||
'User-Agent': `Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.4(0x1800042c) NetType/4G Language/zh_CN miniProgram`,
|
||||
"Accept-Encoding": "gzip, deflate, br",
|
||||
"Accept-Language": "zh-cn"
|
||||
}
|
||||
let {data} = await $.request(url, headers)
|
||||
await $.wait(1000, 3000)
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
12
jd_joy_run.js
Normal file
12
jd_joy_run.js
Normal file
File diff suppressed because one or more lines are too long
@ -351,7 +351,7 @@ function apTaskDrawAward(taskId, taskType) {
|
||||
|
||||
function taskPostClientActionUrl(body, functionId) {
|
||||
return {
|
||||
url: `https://api.m.jd.com/client.action${functionId ? `functionId=${functionId}` : ''}`,
|
||||
url: `https://api.m.jd.com/client.action${functionId ? `?functionId=${functionId}` : ''}`,
|
||||
body: body,
|
||||
headers: {
|
||||
'User-Agent': $.UA,
|
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
//40 5,12,21 * * * m_jd_pet_automation.js
|
||||
//问题反馈:https://t.me/Wall_E_Channel
|
||||
const {Env} = require('./magic');
|
||||
//20 14 10 4 * jd_pet_automation.js
|
||||
|
||||
const {Env} = require('./function/magic');
|
||||
const $ = new Env('M萌宠自动化');
|
||||
let commodityName = process.env.M_JD_PET_COMMODITY
|
||||
? process.env.M_JD_PET_COMMODITY
|
||||
: ''
|
||||
$.log('默认4级商品,生产指定商品请自行配置 M_JD_PET_COMMODITY')
|
||||
$.log('默认5级商品,生产指定商品请自行配置 M_JD_PET_COMMODITY')
|
||||
$.logic = async function () {
|
||||
let info = await api('initPetTown', {"version": 1});
|
||||
$.log(JSON.stringify(info));
|
||||
@ -28,7 +28,7 @@ $.logic = async function () {
|
||||
info = await api('goodsInfoList', {"type": 2})
|
||||
let goods = commodityName ? info.result.goodsList.filter(
|
||||
o => o.goodsName.includes(commodityName))[0]
|
||||
: info.result.goodsList.filter(o => o.exchangeMedalNum === 4)[0];
|
||||
: info.result.goodsList.filter(o => o.exchangeMedalNum === 5)[0];
|
||||
if (!goods) {
|
||||
$.putMsg(`没找到你要生产的 ${commodityName}`)
|
||||
return
|
||||
@ -38,10 +38,7 @@ $.logic = async function () {
|
||||
}
|
||||
};
|
||||
|
||||
$.run({
|
||||
wait: [2000, 3000], whitelist: ['1-15']
|
||||
}).catch(
|
||||
reason => $.log(reason));
|
||||
$.run({wait: [2000, 3000]}).catch(reason => $.log(reason));
|
||||
|
||||
// noinspection DuplicatedCode
|
||||
async function api(fn, body) {
|
||||
@ -60,5 +57,4 @@ async function api(fn, body) {
|
||||
let {data} = await $.request(url, headers)
|
||||
await $.wait(1000, 3000)
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
@ -1,18 +1,18 @@
|
||||
//20 * * * * m_jx_factory_automation.js
|
||||
//问题反馈:https://t.me/Wall_E_Channel
|
||||
const {Env} = require('./magic');
|
||||
const $ = new Env('M工厂自动化');
|
||||
let commodityName = process.env.M_JX_FACTORY_COMMODITY
|
||||
? process.env.M_JX_FACTORY_COMMODITY
|
||||
: '你还没设置要生产的变量M_JX_FACTORY_COMMODITY'
|
||||
let stop = false;
|
||||
$.logic = async function () {
|
||||
if (stop) {
|
||||
return;
|
||||
}
|
||||
let info = await GetUserInfo();
|
||||
$.log(JSON.stringify(info));
|
||||
/*
|
||||
[task_local]
|
||||
京喜工厂自动化
|
||||
变量:京喜工厂自动化生产(填写需要生产的商品名)
|
||||
配合京喜工厂商品列表详情使用
|
||||
//export COMMODITY_NAME="芦荟洗手液2瓶"
|
||||
2 10 20 5 * jx_factory_automation.js
|
||||
*/
|
||||
const {Env} = require('./function/magic');
|
||||
const $ = new Env('M京喜工厂自动化');
|
||||
let commodityName = process.env.COMMODITY_NAME ? process.env.COMMODITY_NAME
|
||||
: '还没设置要生产商品的变量COMMODITY_NAME,先运行获取商品任务,例:export COMMODITY_NAME="芦荟洗手液2瓶"'
|
||||
|
||||
$.logic = async function () {
|
||||
let info = await GetUserInfo();
|
||||
if (!info) {
|
||||
$.putMsg('没有找到工厂信息');
|
||||
return;
|
||||
@ -26,7 +26,7 @@ $.logic = async function () {
|
||||
return
|
||||
}
|
||||
let productionId = product.productionId;
|
||||
await $.wait(300, 500)
|
||||
await $.wait(3000, 5000)
|
||||
let {active} = await ExchangeCommodity(productionId);
|
||||
await $.wait(300, 500)
|
||||
await QueryHireReward();
|
||||
@ -39,58 +39,23 @@ $.logic = async function () {
|
||||
let deviceId = info?.deviceList[0].deviceId;
|
||||
$.log('获取设备id', deviceId);
|
||||
let {commodityList} = await GetCommodityList();
|
||||
await $.wait(1300, 1500)
|
||||
await GetShelvesList()
|
||||
let filter = commodityList.filter(o => o.name.includes(commodityName));
|
||||
if (filter.length === 1) {
|
||||
let commodity = filter[0];
|
||||
if (commodity?.flashStartTime && commodity?.flashStartTime
|
||||
> $.timestamp()) {
|
||||
$.log(`还没到时间`)
|
||||
return;
|
||||
}
|
||||
let data = await GetCommodityDetails(commodity.commodityId);
|
||||
let data = await GetCommodityDetails(filter[0].commodityId);
|
||||
await GetDeviceDetails();
|
||||
await $.wait(300, 500)
|
||||
let newVar = await AddProduction(factoryId, deviceId, data.commodityId);
|
||||
if (newVar?.productionId) {
|
||||
$.putMsg(`${data.name}已经开始生产`)
|
||||
info = await GetUserInfo();
|
||||
let product = info?.productionList[0];
|
||||
let productionId = product.productionId;
|
||||
await InvestElectric(productionId);//添加电力
|
||||
await InvestElectric(productionId);
|
||||
}
|
||||
} else {
|
||||
$.putMsg(`没找到你要生产的 ${commodityName}`)
|
||||
stop = true;
|
||||
}
|
||||
};
|
||||
|
||||
$.run({
|
||||
wait: [2000, 3000]
|
||||
}).catch(
|
||||
reason => $.log(reason));
|
||||
|
||||
async function InvestElectric(productionId) {
|
||||
let url = `https://m.jingxi.com/dreamfactory/userinfo/InvestElectric?zone=dream_factory&productionId=${productionId}&_time=1637743936757&_ts=1637743936757&_=1637743936758&sceneval=2&g_login_type=1&callback=jsonpCBKR&g_ty=ls`;
|
||||
// noinspection DuplicatedCode
|
||||
let headers = {
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
'Referer': 'https://st.jingxi.com/pingou/dream_factory/index.html',
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Host': 'm.jingxi.com',
|
||||
'Accept-Language': 'zh-cn'
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['Cookie'] = $.cookie
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
return data?.data
|
||||
}
|
||||
return false;
|
||||
}
|
||||
$.run({wait: [2000, 3000]}).catch(reason => $.log(reason));
|
||||
|
||||
async function AddProduction(factoryId, deviceId, commodityDimId) {
|
||||
let url = `https://m.jingxi.com/dreamfactory/userinfo/AddProduction?zone=dream_factory&factoryId=${factoryId}&deviceId=${deviceId}&commodityDimId=${commodityDimId}&replaceProductionId=&_time=1637282973549&_ts=1637282973549&_=1637282973550&sceneval=2&g_login_type=1&callback=jsonpCBKGGG&g_ty=ls`;
|
||||
@ -105,8 +70,7 @@ async function AddProduction(factoryId, deviceId, commodityDimId) {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -130,8 +94,7 @@ async function GetDeviceDetails() {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -153,8 +116,7 @@ async function GetUserComponent(pin) {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -177,8 +139,7 @@ async function GetUserInfo() {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -201,8 +162,7 @@ async function ExchangeCommodity(productionId) {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -225,8 +185,7 @@ async function GetCommodityList() {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -249,8 +208,7 @@ async function GetCommodityDetails(commodityId) {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
return data?.data?.commodityList?.[0]
|
||||
@ -269,8 +227,7 @@ async function queryprizedetails(actives) {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -292,8 +249,7 @@ async function QueryHireReward() {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
@ -315,8 +271,7 @@ async function GetShelvesList() {
|
||||
'Cookie': $.cookie
|
||||
}
|
||||
// noinspection DuplicatedCode
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.randomString(
|
||||
40)};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
headers['User-Agent'] = `jdpingou;iPhone;5.2.2;14.3;${$.uuid()};network/wifi;model/iPhone12,1;appBuild/100630;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/1;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148`
|
||||
let data = await $.get(url, headers)
|
||||
// noinspection DuplicatedCode
|
||||
if (data?.ret === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user