保存失败问题
This commit is contained in:
parent
fe54e21956
commit
cf50164cdd
@ -72,9 +72,6 @@ public class AccountRechargeResourceController extends DefaultBaseController {
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@PostMapping("recharge-result/{accountRechargeId}")
|
||||
public synchronized AccountRechargePayResultDTO getRecharge(@PathVariable("accountRechargeId") String accountRechargeId, @RequestBody AccountRechargeVO accountRechargeVO) {
|
||||
if (StringUtils.isBlank(accountRechargeVO.getUserId())) {
|
||||
throw new ParamsException("用户ID不能为空");
|
||||
}
|
||||
return accountRechargeService.queryOnlineSuccess(accountRechargeId, accountRechargeVO);
|
||||
}
|
||||
|
||||
@ -83,6 +80,9 @@ public class AccountRechargeResourceController extends DefaultBaseController {
|
||||
@PostMapping("save-account")
|
||||
@CheckRequestBodyAnnotation
|
||||
public AccountRechargePayDTO saveAccount(@RequestBody AccountRechargeVO accountRechargeVO) {
|
||||
if (StringUtils.isBlank(accountRechargeVO.getUserId())) {
|
||||
throw new ParamsException("用户ID不能为空");
|
||||
}
|
||||
return accountRechargeService.saveAccount(accountRechargeVO.getThirdParty(), accountRechargeVO);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user