| | |
| | | params.put("payout_mode", "INDIA_IMPS"); // 代付模式,根据实际情况选择 |
| | | params.put("customer_account_type", userWithdraw.getBankAddress()); // 账号类型 |
| | | params.put("customer_account_no", userWithdraw.getBankNo()); // 收款人账号(银行卡号或UPI ID) |
| | | params.put("notify_url", "https://api.durocaspitall.com/user/payoutCallback.do"); // 异步通知地址 |
| | | params.put("notify_url", "https://api.greenbackcaps.top/user/payoutCallback.do"); // 异步通知地址 |
| | | |
| | | // 生成签名 |
| | | String sign = PaymentSignUtil.generateSign(params, key); |
| | |
| | | userAssetsMapper.updateById(userAssets); |
| | | |
| | | userWithdraw.setWithStatus(2); // 失败 |
| | | userWithdraw.setWithMsg("代付下单失败:" + payoutResponse.getMessage()); |
| | | userWithdraw.setWithMsg("fail:" + payoutResponse.getMessage()); |
| | | userWithdraw.setTransTime(new Date()); |
| | | userWithdrawMapper.updateByPrimaryKeySelective(userWithdraw); |
| | | |
| | | return ServerResponse.createByErrorMsg("代付下单失败:" + payoutResponse.getMessage()); |
| | | return ServerResponse.createByErrorMsg("fail:" + payoutResponse.getMessage(),request); |
| | | } |
| | | |
| | | // 保存代付记录 |