上报数据 报空修改

lvxinran 2020-11-24 14:05:32 +08:00
parent 4dd8ad89d9
commit 4419d44283
1 changed files with 4 additions and 4 deletions

View File

@ -17,19 +17,19 @@ public class ReportUserEvent {
private Map<Integer,Map<String,Object>> userProperties; private Map<Integer,Map<String,Object>> userProperties;
public ReportUserEvent setAccount_id(String accountId){ public ReportUserEvent setAccount_id(String accountId){
baseInfo.put("#account_id",accountId); baseInfo.put("#account_id",accountId==null?"unknown":accountId);
return this; return this;
} }
public ReportUserEvent setDistinct_id(String distinct_id){ public ReportUserEvent setDistinct_id(String distinct_id){
baseInfo.put("#distinct_id",distinct_id); baseInfo.put("#distinct_id",distinct_id==null?"unknown":distinct_id);
return this; return this;
} }
public ReportUserEvent setDevice_id(String device_id){ public ReportUserEvent setDevice_id(String device_id){
baseInfo.put("#device_id",device_id); baseInfo.put("#device_id",device_id==null?"unknown":device_id);
return this; return this;
} }
public ReportUserEvent setIp(String ip){ public ReportUserEvent setIp(String ip){
baseInfo.put("#ip",ip); baseInfo.put("#ip",ip==null?"unknown":ip);
return this; return this;
} }
public ReportUserEvent setCountry_code(int country_code){ public ReportUserEvent setCountry_code(int country_code){