|
|
@@ -356,6 +356,19 @@ const encryptionKey = "wx6de7f55dbc1fad2f"
|
|
|
const ajaxCommonUrl = locationhref.includes('merch.szx.abchina.com') ? 'https://merch.szx.abchina.com.cn/wbankapi' : 'https://www.iblock.vip/abmini';
|
|
|
const ajaxDbankApiUrl = locationhref.includes('merch.szx.abchina.com') ? 'https://merch.szx.abchina.com.cn/wbankapi/dbank' : 'https://www.iblock.vip/dbank';
|
|
|
|
|
|
+const GlobalHeaders = {
|
|
|
+ 'Accept': `*/*`,
|
|
|
+ 'Origin': `https://merch.szx.abchina.com.cn`,
|
|
|
+ 'Accept-Encoding': `gzip, deflate, br`,
|
|
|
+ 'Cookie': `BIGipServerACCD-EBANK-99-pool1=!WuTM5y2tcBPt7RC4a1SH76q4KmXyymk2aDvzmgFJrW/WdUzQ3ZTL47MUtSyuQGtvR6twlmKtIy0=`,
|
|
|
+ 'Content-Type': `application/json;charset=UTF-8`,
|
|
|
+ 'Host': `merch.szx.abchina.com.cn`,
|
|
|
+ 'Connection': `keep-alive`,
|
|
|
+ 'User-Agent': `Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.37(0x18002526) NetType/4G Language/zh_CN`,
|
|
|
+ 'Referer': `https://merch.szx.abchina.com.cn/wbank/html/buyu/index.html?phone=14e54e866e6af4e356cd4971ac9c3340`,
|
|
|
+ 'Accept-Language': `zh-CN,zh-Hans;q=0.9`
|
|
|
+};
|
|
|
+
|
|
|
const lk = new ToolKit(`捕鱼刷分手`, `WbankBuYu`, `wbankBuYu.js`);
|
|
|
if (!lk.isExecComm) {
|
|
|
if (!lk.isRequest()) {
|
|
|
@@ -364,14 +377,18 @@ if (!lk.isExecComm) {
|
|
|
}
|
|
|
|
|
|
async function all() {
|
|
|
+ let initHeaders = GlobalHeaders;
|
|
|
+ let encPhone = encryptDes('134303889115');
|
|
|
+ initHeaders.Referer = `https://merch.szx.abchina.com.cn/wbank/html/buyu/index.html?phone=${encPhone}`;
|
|
|
let retTime = await wRequest('get', `/api/sysConfig/findByKey`, {
|
|
|
data: {
|
|
|
key: 'shubi.ybh.activity.time',
|
|
|
- }
|
|
|
+ },
|
|
|
+ headers: initHeaders,
|
|
|
});
|
|
|
lk.log('##########Time###########');
|
|
|
lk.log(JSON.stringify(retTime));
|
|
|
- let retRule = await wRequest('get', `/api/sysConfig/findByKey`, {
|
|
|
+ let retRule = await wRequest('GET', `/api/sysConfig/findByKey`, {
|
|
|
data: {
|
|
|
key: 'shubi.ybh.activity.game.rules',
|
|
|
}
|
|
|
@@ -401,13 +418,16 @@ async function all() {
|
|
|
}
|
|
|
|
|
|
async function tryToUploadSocre(pNumStr, score) {
|
|
|
- let phone = encryptDes(pNumStr);
|
|
|
- lk.log(`phone=${phone}`);
|
|
|
+ let encPhone = encryptDes(pNumStr);
|
|
|
+ lk.log(`phone=${encPhone}`);
|
|
|
+ let initHeaders = GlobalHeaders;
|
|
|
+ initHeaders.Referer = `https://merch.szx.abchina.com.cn/wbank/html/buyu/index.html?phone=${encPhone}`;
|
|
|
+
|
|
|
let retPlay = await wRequest('post', `/api/ybh/doAward`, {
|
|
|
data: {
|
|
|
score: score,
|
|
|
gameStatus: 1,
|
|
|
- phone: phone
|
|
|
+ phone: encPhone
|
|
|
}
|
|
|
});
|
|
|
return retPlay;
|