|
@@ -219,6 +219,22 @@ implements IGameTencentAppApiOrderService {
|
|
|
}
|
|
|
GameTencentAppCallback callback = gameTencentAppCallbackService.getById(user.getCallbackId());
|
|
|
|
|
|
+ UserActionRpcDTO.UserIdRpcDTO userId = UserActionRpcDTO.UserIdRpcDTO.builder().build();
|
|
|
+ if ("android".equalsIgnoreCase(callback.getDeviceOsType())) {
|
|
|
+ if(StringUtils.isNotBlank(callback.getMuid())) {
|
|
|
+ userId.setHashImei(callback.getMuid());
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(callback.getHashOaid())) {
|
|
|
+ userId.setHashOaid(callback.getHashOaid());
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(callback.getHashAndroidId())) {
|
|
|
+ userId.setHashAndroidId(callback.getHashAndroidId());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if(StringUtils.isNotBlank(callback.getMuid())) {
|
|
|
+ userId.setHashIdfa(callback.getMuid());
|
|
|
+ }
|
|
|
+ }
|
|
|
Map<String, Object> actionParams = new HashMap<>();
|
|
|
actionParams.put("value", backMoney);
|
|
|
DataReportOfAccountIdRpcDTO dataReportOfAccountIdRpcDTO = DataReportOfAccountIdRpcDTO.builder()
|
|
@@ -227,11 +243,7 @@ implements IGameTencentAppApiOrderService {
|
|
|
.action(UserActionRpcDTO.builder()
|
|
|
.actionTime(backTime)
|
|
|
.actionType(ActionTypeEnum.PURCHASE.getActionType())
|
|
|
- .userId(UserActionRpcDTO.UserIdRpcDTO.builder()
|
|
|
- .hashImei(StringUtils.isBlank(user.getImei()) ? null : Md5Util.encrypt32(user.getImei().toLowerCase()).toLowerCase())
|
|
|
- .hashIdfa(StringUtils.isBlank(user.getOaid()) ? null : Md5Util.encrypt32(user.getIdfa().toLowerCase()).toLowerCase())
|
|
|
- .hashOaid(StringUtils.isBlank(user.getOaid()) ? null : Md5Util.encrypt32(user.getOaid().toLowerCase()).toLowerCase())
|
|
|
- .build())
|
|
|
+ .userId(userId)
|
|
|
.trace(UserActionRpcDTO.TraceRpcDTO.builder()
|
|
|
.clickId(callback.getClickId())
|
|
|
.build())
|