|
|
@@ -405,16 +405,22 @@ async function wRequest(type = 'post', { data: data, headers: headers }) {
|
|
|
lk.log("#########################4");
|
|
|
function httpRequest(type, url, data, headers) {
|
|
|
let aesKey = randomString(23) + '='
|
|
|
+ lk.log("#########################5");
|
|
|
+ if (Base64) {
|
|
|
+
|
|
|
+ lk.log("xxxxxxxxxxxxxxx");
|
|
|
+ }
|
|
|
let params = (data && Object.keys(data).length > 0) ? {
|
|
|
enData: Base64.encode(encryptAES(JSON.stringify(data), aesKey)),
|
|
|
aesKey: Base64.encode(encryptRSA(aesKey))
|
|
|
} : data;
|
|
|
+ lk.log("#########################6");
|
|
|
console.log(data)
|
|
|
let urlList = ['/open/api/generateLink', '/api/kBankConfig/findByKey', '/api/wBankConfig/findByKey', '/api/gejin/gjj/clickCount', '/api/puhui/referrer/activityConfig', '/api/puhui/referrer/regedit', '/api/puhui/referrer/query', '/api/kBankConfig/findByKey', '/api/puhui/referrer/receiveAward', '/api/puhui/referrer/draw', '/api/puhui/referrer/activityConfig', '/api/puhui/referrer/noDrawNum']
|
|
|
let apiUrl = urlList.includes(url) ? ajaxCommonUrl + url : ajaxDbankApiUrl + url
|
|
|
let mutilHeads = { 'Content-type': 'application/json;charset=UTF-8', ...headers };
|
|
|
headers.Host = "merch.szx.abchina.com.cn";
|
|
|
- lk.log("#########################5");
|
|
|
+ lk.log("#########################7");
|
|
|
if (type == 'post') {
|
|
|
lk.post({
|
|
|
url: apiUrl,
|