上报增加默认值
parent
980477b790
commit
df28c22959
|
|
@ -82,8 +82,8 @@ public class ReportBaseBean {
|
|||
this.device_id = device_id.isEmpty()?"DEFAULT-DEVICE_ID":device_id;
|
||||
this.ip = ip.isEmpty()?"DEFAULT-IP":ip;
|
||||
this.country_code = country_code;
|
||||
this.idfa_sOr_imei_s = idfa_sOr_imei_s;
|
||||
this.network_s = network_s;
|
||||
this.idfa_sOr_imei_s = idfa_sOr_imei_s.isEmpty() ? "DEFAULT_deviceid" : idfa_sOr_imei_s;
|
||||
this.network_s = network_s.isEmpty() ? "DEFAULT_mac" : network_s;
|
||||
}
|
||||
|
||||
public ReportBaseBean() {
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ public class UserManager {
|
|||
if (now - addTime >= LIVE_TIME) {
|
||||
userMap.remove(integerUserEntry.getId());
|
||||
userMapPutTime.remove(integerUserEntry.getId());
|
||||
ReportUtil.baseBeanMap.remove(integerUserEntry.getId());
|
||||
}
|
||||
}
|
||||
LOGGER.info("checkOffline left count={}", userMap.keySet().size());
|
||||
|
|
|
|||
|
|
@ -271,7 +271,8 @@ public class BuyGoodsNewLogic {
|
|||
jsonObject.put("who", user.getPlayerInfoManager().getOpenId());
|
||||
ReportBaseBean reportBaseBean = ReportUtil.baseBeanMap.get(uid);
|
||||
JSONObject jsonObject2 = new JSONObject();
|
||||
jsonObject2.put("_deviceid", reportBaseBean != null ? reportBaseBean.getIdfa_sOr_imei_s() : "11111");
|
||||
jsonObject2.put("_deviceid", (reportBaseBean != null && reportBaseBean.getIdfa_sOr_imei_s() != null && !reportBaseBean.getIdfa_sOr_imei_s().isEmpty())?
|
||||
reportBaseBean.getIdfa_sOr_imei_s() : "DEFAULT_deviceid");
|
||||
jsonObject2.put("_transactionid", orderId);
|
||||
jsonObject2.put("_paymenttype", "alipay");
|
||||
jsonObject2.put("_currencytype", "CNY");
|
||||
|
|
|
|||
Loading…
Reference in New Issue