Commit 5ec54997 authored by zjz1994's avatar zjz1994

代码暂存

parent daf31499
......@@ -1477,7 +1477,7 @@ export class NetManager extends ABNetManager {
hideMsg: true,
callback: callback
};
// this.changeCookieCity("测试写入city");
this.changeCookieCity("测试写入city");
try{
// console.log("苏宁原生测试",window['baseApi']);
if(window['baseApi']){
......@@ -1501,7 +1501,7 @@ export class NetManager extends ABNetManager {
}
console.log('新增deviceId',deviceId);
//检查修改cookie
this.changeCookieCity(cityCode);
net.param.deviceId = deviceId;
net.param.city = cityCode;
this.send(net);
......@@ -1546,7 +1546,7 @@ export class NetManager extends ABNetManager {
citydatarr[1] = citycode;
console.log("cookie-----------重设cookie");
var cityval = citydatarr.join("_");
cookiedata[i] = cookie_name+"="+cityval+";path=/";;
cookiedata[i] = cookie_name+"="+cityval+";domain=.cnsuning.com;path=/";;
changecookie = true;
}
break;
......@@ -1554,7 +1554,7 @@ export class NetManager extends ABNetManager {
}
if(!havecity){
console.log("cookie-----------手动加cookie");
var citycookie = "100_"+citycode+";path=/";;
var citycookie = "100_"+citycode+";domain=.cnsuning.com;path=/";;
cookiedata.push(cookie_name+"="+citycookie);
changecookie = true;
}
......
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