From dd663d0ac783755d889e270eee57ee58630c88c8 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期五, 28 二月 2025 17:46:52 +0800 Subject: [PATCH] 冥想2.0新增代码 --- xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserWithdrawController.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 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 1b432ea..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("执行完毕====="); @@ -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