Commit d1fff4f9 authored by zjz1994's avatar zjz1994

埋点暂存

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