Commit 0b734464 authored by zjz1994's avatar zjz1994

修改请求暂存

parent b20b3c40
......@@ -134,6 +134,7 @@ export abstract class ABNetManager {
_refer = _href.indexOf('#') > -1 ? _href.split('#')[0] : _href; //客户端需要refer
// if (needSuAES) {
// console.log("加密请求post");
// //加密时拼接建值
// for (var key in postData) {
// dataArr.push(encodeURIComponent(key) + '=' + encodeURIComponent(postData[key]))
......@@ -141,11 +142,13 @@ export abstract class ABNetManager {
// //拼接地址,加协议头
// url = url.indexOf('http:') > -1 || url.indexOf('https:') > -1 ? url + '?_x_req_block_=' + encodeURIComponent(SuAES.encrypt(dataArr.join("&"))) + '&_x_resp_flag_=2' : window.location.protocol + url + '?_x_req_block_=' + encodeURIComponent(SuAES.encrypt(dataArr.join("&"))) + '&_x_resp_flag_=2';
// } else {
// console.log("不加密请求post");
//修改
url = "https://activity.m.duibatest.com.cn"+url;
url = "https://"+window.location.host+url;
url = url.indexOf('http:') > -1 || url.indexOf('https:') > -1 ? url : window.location.protocol + url;
// }
console.log("新post------发送请求",url,_refer,photoInfo,postData);
console.log(window);
var upload = new Promise(function (resolve, reject) {
//调用客户端方法,根据加密与否修改传参
window['SNNativeClient'].callNativeFormDataReq(url, _refer, photoInfo, postData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment