|
|
@@ -407,16 +407,14 @@ async function wRequest(type = 'post', url, { data: data, headers: headers }) {
|
|
|
lk.log("#########################4");
|
|
|
let aesKey = randomString(23) + '='
|
|
|
lk.log("#########################5");
|
|
|
- if (Base64) {
|
|
|
-
|
|
|
- lk.log("xxxxxxxxxxxxxxx");
|
|
|
- }
|
|
|
+ console.log(data)
|
|
|
+ console.log(headers)
|
|
|
let params = (data && Object.keys(data).length > 0) ? {
|
|
|
enData: Base64.encode(encryptAES(JSON.stringify(data), aesKey)),
|
|
|
aesKey: Base64.encode(encryptRSA(aesKey))
|
|
|
} : data;
|
|
|
+ console.log(params)
|
|
|
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
|
|
|
lk.log("apiUrl=" + apiUrl);
|