|
@@ -163,6 +163,27 @@ function getLastToken(token) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function trySecKill() {
|
|
async function trySecKill() {
|
|
|
|
|
+ let isLogin = true;
|
|
|
|
|
+ let mkData = await getSecKillData();
|
|
|
|
|
+ if (!mkData) {
|
|
|
|
|
+ isLogin = false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (!isLogin) {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ "td": {
|
|
|
|
|
+ "id": "唤醒浮层",
|
|
|
|
|
+ "label": "APP下载浮层立即打开-样式2",
|
|
|
|
|
+ "param": { "dlink_id": "M0P5EnN0addUoXCs240814104407" },
|
|
|
|
|
+ "pageId": gPageId
|
|
|
|
|
+ },
|
|
|
|
|
+ "url": "https://b.pingan.com.cn/creditcard/mk8point8/8point8.html?enUmForShare=888888888888&innerid=KDAPP-96SS-HDY-1&activity_FlowId=m_P0P5qA0B23goyp209115&traceid=50030_adbBb7fYuMa#/"
|
|
|
|
|
+ };
|
|
|
|
|
+ let schemaUrl = `paesuperbank://?paesuperbank=${encodeURIComponent(JSON.stringify(params))}`;
|
|
|
|
|
+ magicJS.notification.post(scriptName, '', strLoginFailMsg, schemaUrl);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let execCount = 10;
|
|
let execCount = 10;
|
|
|
let tipsText = '';
|
|
let tipsText = '';
|
|
|
for (let i = 0; i < execCount; i++) {
|
|
for (let i = 0; i < execCount; i++) {
|
|
@@ -179,6 +200,7 @@ async function trySecKill() {
|
|
|
|
|
|
|
|
async function getSecKillData() {
|
|
async function getSecKillData() {
|
|
|
// 获取 msTaskId 来自 https://b.pingan.com.cn/creditcard/mk8point8/8point8.76984f16.js?76984f16092162948723
|
|
// 获取 msTaskId 来自 https://b.pingan.com.cn/creditcard/mk8point8/8point8.76984f16.js?76984f16092162948723
|
|
|
|
|
+ let msTaskId = '201101900000000000000002';
|
|
|
let token = getSessionToken();
|
|
let token = getSessionToken();
|
|
|
let lastToken = getLastToken(token);
|
|
let lastToken = getLastToken(token);
|
|
|
let webTagInfoArr = [
|
|
let webTagInfoArr = [
|
|
@@ -194,8 +216,9 @@ async function getSecKillData() {
|
|
|
random: Math.random(),
|
|
random: Math.random(),
|
|
|
webTagInfo: encodeURIComponent(webTagInfoArr.join(',')),
|
|
webTagInfo: encodeURIComponent(webTagInfoArr.join(',')),
|
|
|
'addWebTagInfoList[]': encodeURIComponent('module=8point8'),
|
|
'addWebTagInfoList[]': encodeURIComponent('module=8point8'),
|
|
|
|
|
+ taskId: msTaskId,
|
|
|
}
|
|
}
|
|
|
- let url = `https://rmb.pingan.com.cn/credit/core/cust/ma/online/pabank/ma/pm/others/seckill/doKill`;
|
|
|
|
|
|
|
+ let url = `https://rmb.pingan.com.cn/credit/core/cust/ma/online/pabank/ma/pm/others/seckill/show`;
|
|
|
let headers = gCommonHeaders;
|
|
let headers = gCommonHeaders;
|
|
|
let options = {
|
|
let options = {
|
|
|
url: url,
|
|
url: url,
|