Mr.qian il y a 6 jours
Parent
commit
b9b5b9892a

+ 2 - 4
cif-service/src/main/java/com/txz/cif/service/impl/WithdrawRecordServiceImpl.java

@@ -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);
             }

+ 1 - 1
cif-service/src/main/java/com/txz/cif/web/WithdrawRecordApiController.java

@@ -140,7 +140,7 @@ public class WithdrawRecordApiController {
             withdrawRecord.setBank(user.getBank());
             withdrawRecord.setBankAccount(user.getBankAccount());
             withdrawRecord.setBankAccountName(user.getBankAccountName());
-            withdrawRecord.setChannel(param.getChannel());
+            // withdrawRecord.setChannel(param.getChannel());
             withdrawRecord.setCurrency(param.getCurrency());
             withdrawRecord.setAmount(param.getAmount());
             withdrawRecord.setCreateTime(DateUtil.date());