Commit 60dccbb9 authored by zjz1994's avatar zjz1994

新增deviceId

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