mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-01-10 08:19:11 +08:00
1
This commit is contained in:
parent
be44c54e4d
commit
e7b8729518
File diff suppressed because one or more lines are too long
15
jd_opencard_1227.js
Normal file
15
jd_opencard_1227.js
Normal file
File diff suppressed because one or more lines are too long
16
jd_try.js
16
jd_try.js
@ -257,13 +257,13 @@ let args_xh = {
|
|||||||
await try_feedsList(args_xh.tabId[$.nowTabIdIndex], $.nowPage); //获取对应tabId的试用页面
|
await try_feedsList(args_xh.tabId[$.nowTabIdIndex], $.nowPage); //获取对应tabId的试用页面
|
||||||
}
|
}
|
||||||
if (trialActivityIdList.length < args_xh.maxLength) {
|
if (trialActivityIdList.length < args_xh.maxLength) {
|
||||||
console.log(`间隔等待中,请等待5秒 \n`);
|
console.log(`间隔等待中,请等待10秒 \n`);
|
||||||
await $.wait(5000);
|
await $.wait(10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($.isForbidden === false && $.isLimit === false) {
|
if ($.isForbidden === false && $.isLimit === false) {
|
||||||
console.log(`稍后将执行试用申请,请等待 5 秒\n`);
|
console.log(`稍后将执行试用申请,请等待 10 秒\n`);
|
||||||
await $.wait(5000);
|
await $.wait(10000);
|
||||||
for (let i = 0; i < trialActivityIdList.length && $.isLimit === false; i++) {
|
for (let i = 0; i < trialActivityIdList.length && $.isLimit === false; i++) {
|
||||||
if ($.isLimit) {
|
if ($.isLimit) {
|
||||||
console.log('试用上限');
|
console.log('试用上限');
|
||||||
@ -275,7 +275,7 @@ let args_xh = {
|
|||||||
}
|
}
|
||||||
await try_apply(trialActivityTitleList[i], trialActivityIdList[i]);
|
await try_apply(trialActivityTitleList[i], trialActivityIdList[i]);
|
||||||
console.log(`间隔等待中,请等待15秒 \n`);
|
console.log(`间隔等待中,请等待15秒 \n`);
|
||||||
await $.wait(15000);
|
await $.wait(150000);
|
||||||
}
|
}
|
||||||
console.log('试用申请执行完毕...');
|
console.log('试用申请执行完毕...');
|
||||||
$.giveupNum = 0;
|
$.giveupNum = 0;
|
||||||
@ -594,7 +594,7 @@ async function initJsToken() {
|
|||||||
async function try_feedsList(tabId, page) {
|
async function try_feedsList(tabId, page) {
|
||||||
const sign = await h5stSign(
|
const sign = await h5stSign(
|
||||||
{
|
{
|
||||||
functionId: 'try_feedsList',
|
functionId: 'try_SpecFeedList',
|
||||||
appid: 'newtry',
|
appid: 'newtry',
|
||||||
body: {
|
body: {
|
||||||
tabId: String(tabId),
|
tabId: String(tabId),
|
||||||
@ -611,7 +611,7 @@ async function try_feedsList(tabId, page) {
|
|||||||
try {
|
try {
|
||||||
const { data } = await api({
|
const { data } = await api({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: `https://api.m.jd.com/client.action`,
|
url: `http://api.m.jd.com/client.action`,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/x-www-form-urlencoded',
|
'content-type': 'application/x-www-form-urlencoded',
|
||||||
origin: 'https://prodev.m.jd.com',
|
origin: 'https://prodev.m.jd.com',
|
||||||
@ -730,7 +730,7 @@ async function try_feedsList(tabId, page) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function h5stSign(body, appId, version = '5.0.0') {
|
async function h5stSign(body, appId, version = '5.0.1') {
|
||||||
const options = {
|
const options = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: `${args_xh.h5st_server}/h5st`,
|
url: `${args_xh.h5st_server}/h5st`,
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user