|
|
@@ -61,18 +61,21 @@ public class BackStageEventStrategyImpl implements IYktEventStrategy {
|
|
|
remoteCardService.saveOrUpdate(remoteBo);
|
|
|
}
|
|
|
case EventTypeConstants.RECHARGE -> {
|
|
|
- JSONObject object = JSONUtil.parseObj(msg);
|
|
|
- RemotePurseInOutBo remoteBo = new RemotePurseInOutBo();
|
|
|
- remoteBo.setUserId(Long.valueOf(object.getStr("userId")));
|
|
|
- remoteBo.setBagCode(object.getStr("bagCode"));
|
|
|
- remoteBo.setPayStyle(object.getStr("payStyle"));
|
|
|
- remoteBo.setReceiptMoney(new BigDecimal(object.getStr("receiptMoney")));
|
|
|
- remoteBo.setTakeCommission(object.getStr("takeCommission"));
|
|
|
- remoteBo.setOperatorId(Long.valueOf(object.getStr("operatorId")));
|
|
|
- remoteBo.setUseType(SystemUseTypeEnum.CONSUME);
|
|
|
- remoteBo.setOperationMode(BalanceUpdateEnum.RECHARGE);
|
|
|
- remoteBo.setCreditType(CreditTypeEnum.WECHAT_RECHARGE);
|
|
|
+ RemotePurseInOutBo remoteBo = JSONUtil.toBean(JSONUtil.parseObj(msg), RemotePurseInOutBo.class);
|
|
|
+ //JSONObject object = JSONUtil.parseObj(msg);
|
|
|
+ //RemotePurseInOutBo remoteBo = new RemotePurseInOutBo();
|
|
|
+ //remoteBo.setUserId(Long.valueOf(object.getStr("userId")));
|
|
|
+ //remoteBo.setBagCode(object.getStr("bagCode"));
|
|
|
+ //remoteBo.setPayStyle(object.getStr("payStyle"));
|
|
|
+ //remoteBo.setReceiptMoney(new BigDecimal(object.getStr("receiptMoney")));
|
|
|
+ //remoteBo.setTakeCommission(object.getStr("takeCommission"));
|
|
|
+ //remoteBo.setOperatorId(Long.valueOf(object.getStr("operatorId")));
|
|
|
+ //remoteBo.setUseType(SystemUseTypeEnum.CONSUME);
|
|
|
+ //remoteBo.setOperationMode(BalanceUpdateEnum.RECHARGE);
|
|
|
+ //remoteBo.setCreditType(CreditTypeEnum.WECHAT_RECHARGE);
|
|
|
log.info("[处理云端->本地充值请求]-[充值信息:{}]", JSONUtil.toJsonStr(remoteBo));
|
|
|
+
|
|
|
+
|
|
|
remoteBagService.recharge(remoteBo);
|
|
|
}
|
|
|
}
|