|
@@ -75,6 +75,8 @@ public class GameBackPolicyServiceImpl extends ServiceImpl<GameBackPolicyMapper,
|
|
|
public boolean tencentOrderBack(TencentOrderDTO dto) {
|
|
|
//订单保存
|
|
|
GameTencentOrder gameTencentOrder = GameTencentOrder.builder()
|
|
|
+ .adAccountId(dto.getAdAccountId())
|
|
|
+ .gameId(dto.getGameId())
|
|
|
.orderId(dto.getOrderId())
|
|
|
.channel(dto.getChannel())
|
|
|
.rechargeMoney(dto.getRechargeMoney())
|
|
@@ -99,6 +101,7 @@ public class GameBackPolicyServiceImpl extends ServiceImpl<GameBackPolicyMapper,
|
|
|
ActionTypeEnum.PURCHASE.getActionType() : ActionTypeEnum.COMPLETE_ORDER.getActionType();
|
|
|
Map<String, Object> actionParam = new HashMap<>(2);
|
|
|
actionParam.put("claim_type", 0);
|
|
|
+ actionParam.put("value", dto.getRechargeMoney());
|
|
|
DataReportOfAppIdRpcDTO dataReportOfAppIdRpcDTO = DataReportOfAppIdRpcDTO.builder()
|
|
|
.appId(dto.getWechatAppId())
|
|
|
.userActionSetId(dto.getUserActionSetId())
|
|
@@ -123,6 +126,7 @@ public class GameBackPolicyServiceImpl extends ServiceImpl<GameBackPolicyMapper,
|
|
|
.wechatAppId(dto.getWechatAppId())
|
|
|
.wechatOpenid(dto.getWechatOpenid())
|
|
|
.userActionSetId(dto.getUserActionSetId())
|
|
|
+ .actionParam(actionParam.toString())
|
|
|
.build();
|
|
|
|
|
|
boolean doBack;
|
|
@@ -217,6 +221,7 @@ public class GameBackPolicyServiceImpl extends ServiceImpl<GameBackPolicyMapper,
|
|
|
.wechatAppId(dto.getWechatAppId())
|
|
|
.wechatOpenid(dto.getWechatOpenid())
|
|
|
.userActionSetId(dto.getUserActionSetId())
|
|
|
+ .actionParam(actionParam.toString())
|
|
|
.build();
|
|
|
ResultVO<Boolean> result = userActionSetRpc.reportByAppId(dataReportOfAppIdRpcDTO);
|
|
|
if (result.getCode() == HttpStatus.HTTP_OK) {
|