From 1d44c20eabc99e9970fb58d4dbd3a94d77e83e39 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 07 三月 2025 18:35:50 +0800
Subject: [PATCH] 冥想

---
 xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java b/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java
index 4897ea1..948d6ae 100644
--- a/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java
+++ b/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java
@@ -331,13 +331,18 @@
         // 从商户余额分账到用户分账接收方
         JSONObject jsonObject = JuHeFuUtil.balancePay("CZ"+replace, byId.getFenzhangId(), bigDecimal1 + ""
                 , "https://xq.xqzhihui.com/api/user/client/app-user-withdraw/base/callback");
+
         if (jsonObject.getString("error_msg")!=null){
+            System.err.println("从商户余额分账到用户分账接收方报错异常"+jsonObject.getString("error_msg"));
+
             return R.fail("系统繁忙,5分钟后重试");
 //            return R.fail(jsonObject.getString("error_msg"));
         }
         JSONObject jsonObject2 = JuHeFuUtil.balanceWithdraw("TX"+replace, bigDecimal1+"", byId.getFenzhangId(),
                 "https://xq.xqzhihui.com/api/user/client/app-user-withdraw/base/callbackA");
         if (jsonObject2.getString("error_msg")!=null){
+            System.err.println("提现异常原因"+jsonObject2.getString("error_msg"));
+
             return R.fail("系统繁忙,5分钟后重试");
         }
         System.err.println("执行完毕=====");
@@ -533,7 +538,7 @@
             String key = CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone();
             String code = redisService.getCacheObject(key);
             // 万能验证码
-            if (appUserWithdraw.getCode().equals("123456") || (com.xinquan.common.core.utils.StringUtils.isNotBlank(code) && code.equals(
+            if (appUserWithdraw.getCode().equals("220125") || (com.xinquan.common.core.utils.StringUtils.isNotBlank(code) && code.equals(
                     appUserWithdraw.getCode()))) {
                 redisService.deleteObject(key);
             }else{
@@ -552,9 +557,13 @@
             String s1 = "FZ" + time + s;
             String user = JuHeFuUtil.createUser(s1, appUserWithdraw.getCardholder(), "00",
                     appUserWithdraw.getIdentityCard(), appUserWithdraw.getCellPhone(), appUserWithdraw.getCardNo());
+            appUserWithdraw.setFenzhangId(s1);
+            appUserBankService.updateById(appUserWithdraw);
             if (user.equals("success")){
                 byId.setFenzhangId(s1);
                 appUserService.updateById(byId);
+            }else{
+                return R.fail("添加银行卡失败,错误信息:"+user);
             }
         }
         return R.ok();

--
Gitblit v1.7.1