|
|
@@ -144,7 +144,7 @@ public class DistributePopularizeController {
|
|
|
@NoSubmit
|
|
|
@PostMapping("/post/applyMoney")
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
|
- public Result<String> applyMoney(@RequestBody ApplyMoneyReq applyMoneyReq) {
|
|
|
+ public Result<Integer> applyMoney(@RequestBody ApplyMoneyReq applyMoneyReq) {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
User user = userMapper.selectById(userId);
|
|
|
if (user == null) {
|
|
|
@@ -179,9 +179,9 @@ public class DistributePopularizeController {
|
|
|
distributeMoneyApply.setPhone(applyMoneyReq.getPhone());
|
|
|
distributeMoneyApply.setRealName(applyMoneyReq.getRealName());
|
|
|
distributeMoneyApplyMapper.insert(distributeMoneyApply);
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult("申请提现成功,待客服审核打款");
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(distributeMoneyApply.getMoney().intValue());
|
|
|
}
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult("系统异常,请重新提交提现申请");
|
|
|
+ throw BusinessRuntimeException.getInstance("系统异常,请重新提交提现申请");
|
|
|
}
|
|
|
|
|
|
/**
|