|
@@ -185,7 +185,7 @@ public class UserWithdrawalServiceImpl extends ServiceImpl<UserWithdrawalDao, Us
|
|
|
if (authOperaReq.getPass()) {
|
|
|
//请求三方接口
|
|
|
HttpResponseResult<Boolean> withdraw = withdrawSdk.withdraw(
|
|
|
- build.getId().toString(), build.getBankName(), build.getPhone(), withdrawalUser.getIdCardNo(),
|
|
|
+ build.getId().toString(), build.getRealName(), build.getPhone(), withdrawalUser.getIdCardNo(),
|
|
|
build.getActualAmount().multiply(new BigDecimal("100")).intValue(), build.getBankCard(), null
|
|
|
);
|
|
|
if (withdraw.getStatus() && withdraw.getData()) {
|
|
@@ -218,16 +218,16 @@ public class UserWithdrawalServiceImpl extends ServiceImpl<UserWithdrawalDao, Us
|
|
|
if (detail == null) {
|
|
|
return HttpResponseResult.failed("提现记录不存在");
|
|
|
}
|
|
|
- if (!detail.getAuthStatus().equals(AuthStatusEnum.PASS)) {
|
|
|
+ if (!AuthStatusEnum.PASS.equals(detail.getAuthStatus())) {
|
|
|
return HttpResponseResult.failed("提现记录未审核");
|
|
|
}
|
|
|
- if (detail.getTradeStatus().equals(TradeStatusEnum.succeeded)) {
|
|
|
+ if (TradeStatusEnum.succeeded.equals(detail.getTradeStatus())) {
|
|
|
return HttpResponseResult.failed("提现已经交易成功");
|
|
|
}
|
|
|
|
|
|
//不用审核的,需要请求三方
|
|
|
HttpResponseResult<Boolean> withdraw = withdrawSdk.withdraw(
|
|
|
- detail.getId().toString(), detail.getBankName(), detail.getPhone(), user.getIdCardNo(),
|
|
|
+ detail.getId().toString(), detail.getRealName(), detail.getPhone(), user.getIdCardNo(),
|
|
|
detail.getActualAmount().multiply(new BigDecimal("100")).intValue(), detail.getBankCard(), null
|
|
|
);
|
|
|
if (withdraw.getStatus() && withdraw.getData()) {
|