This commit is contained in:
Faker 2022-11-10 00:14:12 +08:00
parent 33c1e22623
commit af142d4689
16 changed files with 0 additions and 700 deletions

View File

@ -1,20 +0,0 @@
//问题反馈:https://t.me/Wall_E_Channel
let mode = __dirname.includes('magic')
const {Env} = mode ? require('./magic') : require('./magic')
const $ = new Env('M地址pin测试');
$.logic = async function () {
let pins;
try {
let h = {'token': process.env.M_API_TOKEN, 'Cookie': "123"};
console.log(h)
let {data}= await this.request("http://ailoveu.eu.org:19840/list_md5_pin", h);
pins = data.data;
} catch (e) {
console.log("获取授权信息失败")
return
}
console.log(pins)
}
$.run({whitelist: [1], wait: [3000, 5000]}).catch(reason => $.log(reason));

File diff suppressed because one or more lines are too long

View File

@ -1,79 +0,0 @@
//20 5,12,21 * * * m_jd_farm_automation.js
//问题反馈:https://t.me/Wall_E_Channel
const {Env} = require('./magic');
const $ = new Env('M农场自动化');
let level = process.env.M_JD_FARM_LEVEL ? process.env.M_JD_FARM_LEVEL * 1 : 2
$.log('默认种植2级种子自行配置请配置 M_JD_FARM_LEVEL')
$.logic = async function () {
let info = await api('initForFarm',
{"version": 11, "channel": 3, "babelChannel": 0});
$.log(JSON.stringify(info));
if (!info?.farmUserPro?.treeState) {
$.log('可能没玩农场')
}
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) {
return
}
let hongBao = info.myHongBaoInfo.hongBao;
$.putMsg(`${hongBao.discount}红包,${$.formatDate(hongBao.endTime)}过期`)
let element = info.farmLevelWinGoods[level][0];
await $.wait(1000, 3000)
info = await api('choiceGoodsForFarm', {
"imageUrl": '',
"nickName": '',
"shareCode": '',
"goodsType": element.type,
"type": "0",
"version": 11,
"channel": 3,
"babelChannel": 0
});
if (info.code * 1 === 0) {
$.putMsg(`已种【${info.farmUserPro.name}`)
}
await api('gotStageAwardForFarm',
{"type": "4", "version": 11, "channel": 3, "babelChannel": 0});
await api('waterGoodForFarm',
{"type": "", "version": 11, "channel": 3, "babelChannel": 0});
await api('gotStageAwardForFarm',
{"type": "1", "version": 11, "channel": 3, "babelChannel": 0});
};
$.run({
wait: [20000, 30000], whitelist: ['1-15']
}).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;
}

View File

@ -1,136 +0,0 @@
let mode = __dirname.includes('magic')
const {Env} = mode ? require('./magic') : require('./magic')
const $ = new Env('M收藏有礼');
$.favShopArgv = process.env.M_FAV_SHOP_ARGV
? process.env.M_FAV_SHOP_ARGV
: '';
if (mode) {
$.favShopArgv = '1000000307_1000000307'
}
let stop = false;
$.logic = async function () {
if (stop) {
return;
}
let argv = $?.favShopArgv?.split('_');
$.shopId = argv?.[0];
$.venderId = argv?.[1];
if (!$.shopId || !$.venderId) {
$.log(`无效的参数${$.favShopArgv}`)
stop = true;
return
}
await $.wait(100, 500);
let actInfo = await QueryShopActive();
if (actInfo?.iRet !== '0') {
$.putMsg(actInfo?.errMsg)
return
}
if (actInfo?.fan === 1) {
$.putMsg('已经收藏过啦');
await DelShopFav()
return
}
let bean = actInfo?.gift?.filter(o => o.jingBean?.sendCount > 0)?.[0];
if (!bean) {
$.putMsg('没有奖励')
//stop = true
return
}
$.activeId = bean.activeId || '';
$.giftId = bean.giftId || '';
$.beanCnt = bean?.jingBean?.sendCount || 0;
$.log($.activeId, $.giftId, $.beanCnt)
if (!$.activeId) {
$.putMsg('没找到活动信息')
stop = true
return
}
let addFav = await addfavgiftshop();
if (addFav.iRet === "0") {
$.putMsg('收藏成功')
}
let gift = await GiveShopGift();
$.log(JSON.stringify(gift))
if (gift.retCode === 0) {
$.putMsg(`${$.beanCnt}`)
} else if (gift.retCode === 201) {
$.putMsg(`已领取过`)
} else {
$.putMsg(`领取失败`)
//stop = true
return
}
await DelShopFav()
};
$.run({wait: [300, 1000],whitelist: ['1-99']})
.catch(reason => $.log(reason))
async function GiveShopGift() {
let url = `https://wq.jd.com/fav_snsgift/GiveShopGift?venderId=${$.venderId}&activeId=${$.activeId}&giftId=${$.giftId}&_=${$.timestamp()}&sceneval=2&g_login_type=1&callback=jsonpCBKQ&g_tk=1292830178&g_ty=ls`
let headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"Connection": "keep-alive",
"Cookie": $.cookie,
"Host": "wq.jd.com",
"Referer": `https://shop.m.jd.com/?shopId=${$.shopId}`,
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1"
}
let {status, data} = await $.request(url, headers);
await $.wait(100, 500)
return $.handler(data);
}
async function DelShopFav() {
let url = `https://wq.jd.com/fav/shop/DelShopFav?shopId=${$.shopId}&venderId=${$.venderId}&_=${$.timestamp()}&sceneval=2&g_login_type=1&callback=jsonpCBKM&g_tk=1292830178&g_ty=ls`
let headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"Connection": "keep-alive",
"Cookie": $.cookie,
"Host": "wq.jd.com",
"Referer": `https://shop.m.jd.com/?shopId=${$.shopId}`,
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1"
}
let {data} = await $.request(url, headers);
await $.wait(100, 500)
return $.handler(data);
}
async function addfavgiftshop() {
let url = `https://wq.jd.com/fav_snsgift/addfavgiftshop?venderId=${$.venderId}&shareToken=&_=${$.timestamp()}&sceneval=2&g_login_type=1&callback=jsonpCBKO&g_tk=1292830178&g_ty=ls`
let headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"Connection": "keep-alive",
"Cookie": $.cookie,
"Host": "wq.jd.com",
"Referer": `https://shop.m.jd.com/?shopId=${$.shopId}`,
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1"
}
let {status, data} = await $.request(url, headers);
await $.wait(100, 500)
return $.handler(data);
}
async function QueryShopActive() {
let headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"Connection": "keep-alive",
"Cookie": $.cookie,
"Host": "wq.jd.com",
"Referer": `https://shop.m.jd.com/?shopId=${$.shopId}`,
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1"
}
let url = `https://wq.jd.com/fav_snsgift/QueryShopActive?venderId=${$.venderId}&_=${$.timestamp()}&sceneval=2&g_login_type=1&callback=jsonpCBKC&g_tk=1292830178&g_ty=ls`
let {status, data} = await $.request(url, headers);
await $.wait(100, 500)
return $.handler(data);
}

File diff suppressed because one or more lines are too long

View File

@ -1,64 +0,0 @@
//40 5,12,21 * * * m_jd_pet_automation.js
//问题反馈:https://t.me/Wall_E_Channel
const {Env} = require('./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')
$.logic = async function () {
let info = await api('initPetTown', {"version": 1});
$.log(JSON.stringify(info));
debugger
if (info?.result?.petStatus < 5) {
return
}
if (info?.result?.petStatus === 5) {
$.log(info?.result?.goodsInfo);
let activityId = info?.result?.goodsInfo.activityId;
let activityIds = info?.result?.goodsInfo.activityIds;
let data = await api('redPacketExchange',
{"activityId": activityId, "activityIds": activityIds});
$.putMsg(`${info?.result?.goodsInfo.exchangeMedalNum === 4 ? '12'
: '25'}红包${$.formatDate(
$.timestamp() + data.result.pastDays * 24 * 60 * 60 * 1000)}过期`)
info = await api('initPetTown', {"version": 1});
}
if (info?.result?.petStatus === 6) {
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];
if (!goods) {
$.putMsg(`没找到你要生产的 ${commodityName}`)
return
}
info = await api('goodsInfoUpdate', {"goodsId": goods.goodsId})
$.putMsg(`生产【${info.result.goodsInfo.goodsName}】成功`)
}
};
$.run({
wait: [2000, 3000], whitelist: ['1-15']
}).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=pet-town`
//↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓请求头↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
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;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,266 +0,0 @@
/*
cron:1 1 1 1 1 1
*/
let mode = __dirname.includes('magic')
const {Env} = mode ? require('./magic') : require('./magic')
const $ = new Env('M集卡抽奖');
$.lz = 'LZ_TOKEN_KEY=lztokef1eb8494b0af868bd18bdaf8;LZ_TOKEN_VALUE=Aa5RE8RuY4X3zA==;';
$.activityUrl = process.env.M_WX_COLLECT_CARD_URL
? process.env.M_WX_COLLECT_CARD_URL
: '';
if (mode) {
$.activityUrl = 'https://lzkjdz-isv.isvjcloud.com/wxCollectCard/activity/2149304?activityId=84a8b50d3a0c48f9bc7804be9da5deac'
$.activityUrl = 'https://lzkjdz-isv.isvjcloud.com/wxCollectCard/activity/1193422?activityId=cb4d9c7ca992427db5a52ec1c0bcc42e'
}
let stop = false;
$.s = 1
const all = new Set();
$.logic = async function () {
if (stop) {
return;
}
$.activityUrl = $.activityUrl.replace("#","&")
$.activityId = $.getQueryString($.activityUrl, 'activityId')
if (!$.activityId || !$.activityUrl) {
$.log(`活动id不存在`);
return
}
$.log(`活动id: ${$.activityId}`, `活动url: ${$.activityUrl}`)
$.domain = $.activityUrl.match(/https?:\/\/([^/]+)/) && $.activityUrl.match(
/https?:\/\/([^/]+)/)[1] || ''
$.UA = `jdapp;iPhone;10.2.2;13.1.2;${$.uuid()};M/5.0;network/wifi;ADID/;model/iPhone8,1;addressid/2308460611;appBuild/167863;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1;`
await getLzToken()
$.domain.includes('lzkj-isv.isvjcloud.com') ? await api(
'wxCommonInfo/initActInfo', `activityId=${$.activityId}`) : ''
let token = await getToken();
if (token.code !== '0') {
$.putMsg(`获取Token失败`);
return
}
$.Token = token?.token
let actInfo = await api('customer/getSimpleActInfoVo',
`activityId=${$.activityId}`);
if (!actInfo.result || !actInfo.data) {
$.log(`获取活动信息失败`);
return
}
$.venderId = actInfo.data.venderId;
$.shopId = actInfo.data.shopId;
$.activityType = actInfo.data.activityType;
let myPing = await api('customer/getMyPing',
`userId=${$.venderId}&token=${$.Token}&fromType=APP`)
if (!myPing.result) {
$.putMsg(`获取pin失败`);
return
}
$.Pin = myPing.data.secretPin;
shopInfo = await api(`wxCollectCard/shopInfo`,
`activityId=${$.activityId}`);
if (!shopInfo.result) {
$.putMsg('获取不到店铺信息,结束运行')
return
}
$.shopName = shopInfo?.data?.shopName
await api(
`common/${$.domain.includes('cjhy') ? 'accessLog' : 'accessLogWithAD'}`,
`venderId=${$.venderId}&code=${$.activityType}&pin=${encodeURIComponent(
$.Pin)}&activityId=${$.activityId}&pageUrl=${$.activityUrl}&subType=app&adSource=`);
$.index > 1 ? $.log(`去助力${$.shareUuid}`) : ''
let activityContent = await api(
'wxCollectCard/activityContent',
`activityId=${$.activityId}&pin=${encodeURIComponent(
$.Pin)}&uuid=${$.shareUuid}`);
if (!activityContent.result && !activityContent.data) {
$.putMsg(activityContent.errorMessage || '活动可能已结束')
return
}
let drawCount = $.match(/每人每天可获得(\d+)次/, activityContent.data.rule)
&& $.match(/每人每天可获得(\d+)次/, activityContent.data.rule) * 1 || 5
console.log('openCard', activityContent.data.openCard);
$.shareUuid = $.shareUuid || activityContent.data.uuid
let drawContent = await api('wxCollectCard/drawContent',
`activityId=${$.activityId}`);
if (drawContent.result && drawContent.data) {
$.content = drawContent.data.content || []
}
debugger
$.shareUuid = $.shareUuid || activityContent.data.uuid
let userInfo = await api('wxActionCommon/getUserInfo',
`pin=${encodeURIComponent($.Pin)}`);
if (!userInfo.result || !userInfo.data) {
$.putMsg(`获取getUserInfo失败`);
return
}
$.nickname = userInfo.data.nickname;
$.attrTouXiang = userInfo.data.yunMidImageUrl
|| 'https://img10.360buyimg.com/imgzone/jfs/t1/21383/2/6633/3879/5c5138d8E0967ccf2/91da57c5e2166005.jpg'
await api('crm/pageVisit/insertCrmPageVisit',
`venderId=${$.venderId}&elementId=${encodeURIComponent(
'邀请')}&pageId=${$.activityId}&pin=${encodeURIComponent($.Pin)}`);
let saveSource = await api('wxCollectCard/saveSource',
`activityId=${$.activityId}&pinImg=${encodeURIComponent(
$.attrTouXiang)}&pin=${encodeURIComponent(
$.Pin)}&jdNick=${encodeURIComponent($.nickname)}`);
if (!saveSource.result || !saveSource.data) {
$.putMsg(`初始化shareuuid失败`);
return
}
$.shareUuid = $.shareUuid || saveSource.data
for (let i = 0; i < drawCount; i++) {
let prize = await api(`wxCollectCard/drawCard`,
`sourceId=${saveSource.data}&activityId=${$.activityId}&type=0`);
$.log(JSON.stringify(prize))
if (prize.result) {
$.putMsg(prize.data.reward.cardName);
} else {
if (prize.errorMessage.includes('上限')) {
$.putMsg('上限');
break;
} else if (prize.errorMessage.includes('来晚了')
|| prize.errorMessage.includes('已发完')
|| prize.errorMessage.includes('活动已结束')) {
stop = true;
break
}
$.log(`${prize}`);
}
await api('crm/pageVisit/insertCrmPageVisit',
`venderId=${$.venderId}&elementId=${encodeURIComponent(
'抽卡')}&pageId=${$.activityId}&pin=${encodeURIComponent(
$.Pin)}`);
await $.wait(1000,2000)
}
activityContent = await api(
'wxCollectCard/activityContent',
`activityId=${$.activityId}&pin=${encodeURIComponent(
$.Pin)}&uuid=${$.shareUuid}`);
if (!activityContent.result && !activityContent.data) {
$.putMsg(activityContent.errorMessage || '活动可能已结束')
return
}
if (activityContent.data.canDraw) {
let prize = await api(`wxCollectCard/getPrize`,
`activityId=${$.activityId}&pin=${encodeURIComponent($.Pin)}`);
$.log(JSON.stringify(prize))
if (!prize.result) {
let msg = prize.data.drawOk ? prize.data.name
: prize.data.errorMessage || '空气';
$.log(msg);
} else {
$.putMsg(`${prize.errorMessage}`);
if (prize.errorMessage.includes('来晚了')
|| prize.errorMessage.includes('已发完')
|| prize.errorMessage.includes('活动已结束')) {
stop = true;
}
}
} else {
activityContent = await api(
'wxCollectCard/activityContent',
`activityId=${$.activityId}&pin=${encodeURIComponent(
$.Pin)}&uuid=${$.shareUuid}`);
if (!activityContent.result && !activityContent.data) {
$.putMsg(activityContent.errorMessage || '活动可能已结束')
return
}
const has = new Set();
for (const ele of activityContent.data.cardList) {
all.add(ele.cardName)
ele.count >0 ? has.add(ele.cardName) : ''
}
$.putMsg(Array.from(has).join(','))
}
}
$.after = async function () {
if ($.msg.length > 0) {
let message = `\n${$.shopName || ''}\n`;
message += `\n${Array.from(all).join(",")}\n`;
for (let ele of $.content || []) {
if (ele.name.includes('谢谢') || ele.name.includes('再来')) {
continue;
}
message += ` ${ele.name}${ele?.type === 8 ? '专享价' : ''}\n`
}
$.msg.push(message)
$.msg.push($.activityUrl);
}
}
$.run().catch(reason => $.log(reason));
async function api(fn, body, isv) {
let url = `https://${$.domain}/${fn}`
let ck = $.lz + ($.Pin && "AUTH_C_USER=" + $.Pin + ";" || "")
ck = isv ? `IsvToken=${$.Token};` + ck : ck;
let headers = {
"Host": $.domain,
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-cn",
"Connection": "keep-alive",
"Content-Type": "application/x-www-form-urlencoded",
"Origin": `https://${$.domain}`,
"Cookie": ck,
"Referer": `${$.activityUrl}`,
"User-Agent": $.UA
}
let {data} = await $.request(url, headers, body)
$.log(JSON.stringify(data))
await $.wait(200, 300)
return data;
}
async function getToken() {
let url = `https://api.m.jd.com/client.action?functionId=isvObfuscator`
let body = ''
switch ($.domain) {
case 'cjhy-isv.isvjcloud.com':
body = 'body=%7B%22url%22%3A%22https%3A//cjhy-isv.isvjcloud.com%22%2C%22id%22%3A%22%22%7D&uuid=920cd9b12a1e621d91ca2c066f6348bb5d4b586b&client=apple&clientVersion=10.1.4&st=1633916729623&sv=102&sign=9eee1d69b69daf9e66659a049ffe075b'
break
case 'lzkj-isv.isvjcloud.com':
body = 'body=%7B%22url%22%3A%22https%3A//lzkj-isv.isvjcloud.com%22%2C%22id%22%3A%22%22%7D&uuid=925ce6441339525429252488722251fff6b10499&client=apple&clientVersion=10.1.4&st=1633777078141&sv=111&sign=00ed6b6f929625c69f367f1a0e5ad7c7'
break
case 'cjhydz-isv.isvjcloud.com':
body = 'adid=7B411CD9-D62C-425B-B083-9AFC49B94228&area=16_1332_42932_43102&body=%7B%22url%22%3A%22https%3A%5C/%5C/cjhydz-isv.isvjcloud.com%22%2C%22id%22%3A%22%22%7D&build=167541&client=apple&clientVersion=9.4.0&d_brand=apple&d_model=iPhone8%2C1&eid=eidId10b812191seBCFGmtbeTX2vXF3lbgDAVwQhSA8wKqj6OA9J4foPQm3UzRwrrLdO23B3E2wCUY/bODH01VnxiEnAUvoM6SiEnmP3IPqRuO%2By/%2BZo&isBackground=N&joycious=48&lang=zh_CN&networkType=wifi&networklibtype=JDNetworkBaseAF&openudid=2f7578cb634065f9beae94d013f172e197d62283&osVersion=13.1.2&partner=apple&rfs=0000&scope=11&screen=750%2A1334&sign=60bde51b4b7f7ff6e1bc1f473ecf3d41&st=1613720203903&sv=110&uts=0f31TVRjBStG9NoZJdXLGd939Wv4AlsWNAeL1nxafUsZqiV4NLsVElz6AjC4L7tsnZ1loeT2A8Z5/KfI/YoJAUfJzTd8kCedfnLG522ydI0p40oi8hT2p2sNZiIIRYCfjIr7IAL%2BFkLsrWdSiPZP5QLptc8Cy4Od6/cdYidClR0NwPMd58K5J9narz78y9ocGe8uTfyBIoA9aCd/X3Muxw%3D%3D&uuid=hjudwgohxzVu96krv/T6Hg%3D%3D&wifiBssid=9cf90c586c4468e00678545b16176ed2'
break
default:
body = 'adid=7B411CD9-D62C-425B-B083-9AFC49B94228&area=16_1332_42932_43102&body=%7B%22url%22%3A%22https%3A%5C/%5C/cjhydz-isv.isvjcloud.com%22%2C%22id%22%3A%22%22%7D&build=167541&client=apple&clientVersion=9.4.0&d_brand=apple&d_model=iPhone8%2C1&eid=eidId10b812191seBCFGmtbeTX2vXF3lbgDAVwQhSA8wKqj6OA9J4foPQm3UzRwrrLdO23B3E2wCUY/bODH01VnxiEnAUvoM6SiEnmP3IPqRuO%2By/%2BZo&isBackground=N&joycious=48&lang=zh_CN&networkType=wifi&networklibtype=JDNetworkBaseAF&openudid=2f7578cb634065f9beae94d013f172e197d62283&osVersion=13.1.2&partner=apple&rfs=0000&scope=11&screen=750%2A1334&sign=60bde51b4b7f7ff6e1bc1f473ecf3d41&st=1613720203903&sv=110&uts=0f31TVRjBStG9NoZJdXLGd939Wv4AlsWNAeL1nxafUsZqiV4NLsVElz6AjC4L7tsnZ1loeT2A8Z5/KfI/YoJAUfJzTd8kCedfnLG522ydI0p40oi8hT2p2sNZiIIRYCfjIr7IAL%2BFkLsrWdSiPZP5QLptc8Cy4Od6/cdYidClR0NwPMd58K5J9narz78y9ocGe8uTfyBIoA9aCd/X3Muxw%3D%3D&uuid=hjudwgohxzVu96krv/T6Hg%3D%3D&wifiBssid=9cf90c586c4468e00678545b16176ed2'
}
let headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-cn",
"Connection": "keep-alive",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "api.m.jd.com",
"Cookie": $.cookie,
"User-Agent": $.UA,
}
let {data} = await $.request(url, headers, body)
return data;
}
async function getLzToken() {
let url = `https://${$.domain}/wxTeam/activity?activityId=${$.activityId}`
return await $.request(url, {
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1",
'Accept-Language': 'zh-cn',
'Cookie': $.cookie
});
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long