Commit d1fff4f9 authored by zjz1994's avatar zjz1994

埋点暂存

parent 60dccbb9
...@@ -1476,16 +1476,22 @@ export class NetManager extends ABNetManager { ...@@ -1476,16 +1476,22 @@ export class NetManager extends ABNetManager {
callback: callback callback: callback
}; };
try{ try{
if(window['SNNativeClient']){ // console.log("苏宁原生测试",window['baseApi']);
if(window['baseApi']){
console.log("苏宁原生测试",GFun.isIOS); console.log("苏宁原生测试",GFun.isIOS);
console.log(window['SNNativeClient']); window['baseApi'].getClientInfo(function(res){
window['SNNativeClient'].getClientInfo(function(res){ console.log("啦啦啦baseApi----info",res);
console.log("啦啦啦SNNativeClientFunc",res);
if(res){ if(res){
var resdata;
if(typeof res =="string"){
resdata = JSON.parse(res);
}else{
resdata = res;
}
if(GFun.isIOS){ if(GFun.isIOS){
deviceId = res.imsi||''; deviceId = resdata.imsi||'';
}else{ }else{
deviceId = res.imei||''; deviceId = resdata.imei||'';
} }
} }
console.log('新增deviceId',deviceId); console.log('新增deviceId',deviceId);
...@@ -1496,6 +1502,7 @@ export class NetManager extends ABNetManager { ...@@ -1496,6 +1502,7 @@ export class NetManager extends ABNetManager {
this.send(net); this.send(net);
} }
}catch(e){ }catch(e){
console.log('一般获取');
this.send(net); this.send(net);
} }
} }
......
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