Commit 60dccbb9 authored by zjz1994's avatar zjz1994

新增deviceId

parent b83df1bb
......@@ -1462,7 +1462,7 @@ export class NetManager extends ABNetManager {
}
public hc_advert(callback: Function): void {
var deviceid:string = '';
var deviceId:string = '';
const net: INetData = {
name: 'hc_advert',
uri: window['duiba'] + '/customActivity/happyclear/advert',
......@@ -1470,7 +1470,7 @@ export class NetManager extends ABNetManager {
dataType: 'json',
param: {
activityId: DataManager.ins.customCfgData.actId,
deviceid:deviceid
deviceId:deviceId
},
hideMsg: true,
callback: callback
......@@ -1483,13 +1483,13 @@ export class NetManager extends ABNetManager {
console.log("啦啦啦SNNativeClientFunc",res);
if(res){
if(GFun.isIOS){
deviceid = res.imsi||'';
deviceId = res.imsi||'';
}else{
deviceid = res.imei||'';
deviceId = res.imei||'';
}
}
console.log('新增deviceid',deviceid);
net.param.deviceid = deviceid;
console.log('新增deviceId',deviceId);
net.param.deviceId = deviceId;
this.send(net);
}.bind(this));
}else{
......
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