|
@@ -132,9 +132,7 @@ public class WithdrawRecordServiceImpl extends AbstractService<WithdrawRecord> i
|
|
|
log.error("提现失败三方返回-->" + bizLog);
|
|
|
throw new ServiceException("提现失败");
|
|
|
}
|
|
|
- if (resultJson.getStr("status").equals("200")) {
|
|
|
- this.update(WithdrawRecord.builder().id(w.getId()).review(review).status(status).thirdOrderNo(thirdOrderNo).build());
|
|
|
- } else {
|
|
|
+ if (!resultJson.getStr("status").equals("200")) {
|
|
|
log.error("提现失败--->" + resultJson.getStr("msg"));
|
|
|
throw new RuntimeException("提现失败--->" + resultJson.getStr("msg"));
|
|
|
}
|
|
@@ -142,7 +140,7 @@ public class WithdrawRecordServiceImpl extends AbstractService<WithdrawRecord> i
|
|
|
default:
|
|
|
throw new ServiceException("暂不支持此渠道");
|
|
|
}
|
|
|
-
|
|
|
+ this.update(WithdrawRecord.builder().id(w.getId()).channel(paymentChannel.getChannelName()).review(review).status(status).thirdOrderNo(thirdOrderNo).build());
|
|
|
} finally {
|
|
|
lockTemplate.releaseLock(lockInfo);
|
|
|
}
|