Commit 5ec54997 authored by zjz1994's avatar zjz1994

代码暂存

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