|
@@ -2,11 +2,9 @@ package org.springblade.modules.api.controller;
|
|
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.alipay.api.AlipayApiException;
|
|
|
-import com.alipay.api.AlipayClient;
|
|
|
-import com.alipay.api.AlipayConfig;
|
|
|
-import com.alipay.api.DefaultAlipayClient;
|
|
|
+import com.alipay.api.*;
|
|
|
import com.alipay.api.domain.AlipayFundTransUniTransferModel;
|
|
|
+import com.alipay.api.domain.AlipayTradeAppPayModel;
|
|
|
import com.alipay.api.domain.Participant;
|
|
|
import com.alipay.api.internal.util.AlipaySignature;
|
|
|
import com.alipay.api.request.*;
|
|
@@ -24,7 +22,6 @@ import org.springblade.common.constant.CommonConstant;
|
|
|
import org.springblade.common.utils.CommonUtil;
|
|
|
import org.springblade.common.utils.NotifyUtils;
|
|
|
import org.springblade.core.log.annotation.ApiLog;
|
|
|
-import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.log.logger.BladeLogger;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.utils.DateUtil;
|
|
@@ -48,6 +45,9 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLEncoder;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Iterator;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
@@ -64,7 +64,7 @@ public class AliPay01Controller {
|
|
|
private static final String TRADE_URL = "/api/v1/aliPay/sdk/trade_notify_url";
|
|
|
|
|
|
//购买
|
|
|
- //private static final String TRADE_URL = "/api/v1/aliPay/sdk/order_notify_url";
|
|
|
+ private static final String ORDER_URL = "/api/v1/aliPay/sdk/order_notify_url";
|
|
|
|
|
|
@Autowired
|
|
|
private AlipayClient client;//支付宝请求sdk客户端
|
|
@@ -73,9 +73,7 @@ public class AliPay01Controller {
|
|
|
private AlipayProperties properties;//支付宝sdk配置
|
|
|
|
|
|
private final IOrderService orderService;
|
|
|
-
|
|
|
private final IOrderGrantService orderGrantService;
|
|
|
-
|
|
|
private final IUserService userService;
|
|
|
private final IOrderConsignService orderConsignService;
|
|
|
private final IConsignService consignService;
|
|
@@ -83,7 +81,7 @@ public class AliPay01Controller {
|
|
|
@Autowired
|
|
|
private BladeLogger logger;
|
|
|
|
|
|
- @ApiLog("发起支付-直接交易")
|
|
|
+ @ApiLog("发起交易-证书")
|
|
|
@PostMapping("/pay_001")
|
|
|
@ApiOperation(value = "统一收单线下交易查询", notes = "当面付")
|
|
|
@ApiOperationSupport(order = 1)
|
|
@@ -98,33 +96,36 @@ public class AliPay01Controller {
|
|
|
}
|
|
|
if(order.getOrderType() == 3){
|
|
|
//寄售订单而且寄售方式为寄售
|
|
|
- Consign consign = consignService.getOne(Wrappers.<Consign>lambdaQuery().eq(Consign::getConsignType,order.getOutTradeNo()));
|
|
|
- if (consign != null && consign.getConsignFor() == 2){
|
|
|
- return R.fail("该订单为寄售单,不能发起交易!");
|
|
|
+ OrderConsign orderConsign = orderConsignService.getOne(Wrappers.<OrderConsign>lambdaQuery()
|
|
|
+ .eq(OrderConsign::getOutTradeNo, outTradeNo));
|
|
|
+ if (orderConsign != null){
|
|
|
+ Consign consign = consignService.getById(orderConsign.getConsignId());
|
|
|
+ if (consign != null && consign.getConsignType() == 2){
|
|
|
+ return R.fail("该订单为抢购单,不能发起交易!");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if("aliPay".equals(payFor)){
|
|
|
- try {
|
|
|
- JSONObject data = new JSONObject();
|
|
|
- data.put("out_trade_no", outTradeNo); //商户订单号
|
|
|
- //产品码, APP支付 QUICK_MSECURITY_PAY, PC支付 FAST_INSTANT_TRADE_PAY, 移动H5支付 QUICK_WAP_PAY
|
|
|
- data.put("product_code", "QUICK_MSECURITY_PAY");
|
|
|
- data.put("total_amount", "0.1"); //订单金额
|
|
|
- data.put("subject", "中宏酒业"); //订单标题
|
|
|
- //APP支付
|
|
|
- AlipayTradeAppPayRequest request = new AlipayTradeAppPayRequest();
|
|
|
- request.setNotifyUrl(properties.getDomain() + TRADE_URL); //异步通知地址
|
|
|
- request.setBizContent(data.toJSONString()); //业务参数
|
|
|
- //APP支付
|
|
|
+ AlipayTradeAppPayRequest request = new AlipayTradeAppPayRequest ();
|
|
|
+ AlipayTradeAppPayModel model = new AlipayTradeAppPayModel ();
|
|
|
+ model.setBody("中宏商城" );
|
|
|
+ model.setSubject("中宏商城");
|
|
|
+ model.setOutTradeNo(outTradeNo);
|
|
|
+ model.setTimeoutExpress("30m");
|
|
|
+ model.setTotalAmount(order.getPayFee().toString());
|
|
|
+ model.setProductCode("QUICK_MSECURITY_PAY");
|
|
|
+ request.setBizModel(model);
|
|
|
+ request.setNotifyUrl(properties.getDomain() + ORDER_URL);
|
|
|
+ try {
|
|
|
+ //这里和普通的接口调用不同,使用的是sdkExecute
|
|
|
+ //普通模式 使用 execute
|
|
|
+ //证书使用 使用 sdkExecute
|
|
|
AlipayTradeAppPayResponse response = client.sdkExecute(request);
|
|
|
- if (response.isSuccess()){
|
|
|
- return R.data(response.getBody());
|
|
|
- }
|
|
|
- } catch (AlipayApiException e) {
|
|
|
+ return R.data(response.getBody());
|
|
|
+ } catch (AlipayApiException e ) {
|
|
|
e.printStackTrace();
|
|
|
- log.info("这里报错了.....");
|
|
|
+ return R.fail("发起支付失败!");
|
|
|
}
|
|
|
- return R.fail("发起支付失败!");
|
|
|
}
|
|
|
return R.fail("该支付方式暂不支持!");
|
|
|
}
|
|
@@ -181,7 +182,9 @@ public class AliPay01Controller {
|
|
|
if (!flg){
|
|
|
logger.info("订单绑定失败",update.toString());
|
|
|
}
|
|
|
- AlipayTradePayResponse response = client.execute(request);
|
|
|
+ //普通模式 使用 execute
|
|
|
+ //证书使用 使用 certificateExecute
|
|
|
+ AlipayTradePayResponse response = client.certificateExecute(request);
|
|
|
if (response.isSuccess()){
|
|
|
return R.data(response.getBody());
|
|
|
}else{
|
|
@@ -204,7 +207,8 @@ public class AliPay01Controller {
|
|
|
@ApiParam(value = "批次ID", required = true) @RequestParam Long batNo,
|
|
|
@ApiParam(value = "金额", required = true) @RequestParam Double price,
|
|
|
@ApiParam(value = "数量", required = true) @RequestParam Integer num) throws AlipayApiException {
|
|
|
- //1.通过批次号查询金额
|
|
|
+
|
|
|
+ //1.通过批次号和用户id查询是有在预授权的数据
|
|
|
JSONObject data = new JSONObject();
|
|
|
String orderNo = CommonUtil.genTimeID();
|
|
|
data.put("out_order_no", orderNo);
|
|
@@ -219,6 +223,7 @@ public class AliPay01Controller {
|
|
|
request.setNotifyUrl(properties.getDomain() + NOTIFY_URL); //异步通知地址
|
|
|
request.setBizContent(data.toJSONString()); //业务参数
|
|
|
//APP支付
|
|
|
+ //必须使用 sdkExecute
|
|
|
AlipayFundAuthOrderAppFreezeResponse response = client.sdkExecute(request);
|
|
|
if(response.isSuccess()){
|
|
|
//查询数据如果已经预授权的
|
|
@@ -232,6 +237,7 @@ public class AliPay01Controller {
|
|
|
grant.setNowNum(num);
|
|
|
grant.setPrice(price);
|
|
|
grant.setDataDate(dataDate);
|
|
|
+ grant.setCreateTime(DateUtil.now());//创建时间
|
|
|
orderGrantService.save(grant);
|
|
|
return R.data(response.getBody());
|
|
|
}
|
|
@@ -292,14 +298,14 @@ public class AliPay01Controller {
|
|
|
alipayConfig.setRootCertPath("D:\\Blade2.9.0\\bladex-boot\\src\\main\\resources\\alipay\\alipayRootCert.crt");
|
|
|
AlipayClient alipayClient = new DefaultAlipayClient(alipayConfig);
|
|
|
AlipayFundTransUniTransferModel model = new AlipayFundTransUniTransferModel();
|
|
|
- model.setOutBizNo("9c721d8d8a6948b8b5c9c2084b264acd");
|
|
|
+ model.setOutBizNo("9c721d8d8a648b8b5c9c2084b264acd");
|
|
|
model.setRemark("201905代发");
|
|
|
model.setBusinessParams("{\"payer_show_name_use_alias\":\"true\"}");
|
|
|
model.setBizScene("DIRECT_TRANSFER");
|
|
|
Participant payeeInfo = new Participant();
|
|
|
- payeeInfo.setIdentity("2088012801069195");
|
|
|
+ payeeInfo.setIdentity("2088022745054432");
|
|
|
payeeInfo.setIdentityType("ALIPAY_USER_ID");
|
|
|
- payeeInfo.setName("丰元权");
|
|
|
+ payeeInfo.setName("徐维");
|
|
|
model.setPayeeInfo(payeeInfo);
|
|
|
model.setTransAmount("0.1");
|
|
|
model.setProductCode("TRANS_ACCOUNT_NO_PWD");
|
|
@@ -315,6 +321,17 @@ public class AliPay01Controller {
|
|
|
return R.fail("打款失败!");
|
|
|
}
|
|
|
|
|
|
+ @ApiLog("抢购打款-测试")
|
|
|
+ @PostMapping("/pay_006")
|
|
|
+ @ApiOperation(value = "单笔转账到支付宝账户", notes = "单笔转账到支付宝账户")
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
+ public R pay006(@ApiParam(value = "支付宝", required = true) @RequestParam String aliPayId,
|
|
|
+ @ApiParam(value = "真实姓名", required = true) @RequestParam String name,
|
|
|
+ @ApiParam(value = "金额", required = true) @RequestParam String amount) {
|
|
|
+ transfer(aliPayId, name, amount);
|
|
|
+ return R.fail("正在打款...");
|
|
|
+ }
|
|
|
+
|
|
|
@ApiLog("资金解冻")
|
|
|
@GetMapping("/pay_unfreeze")
|
|
|
@ApiOperation(value = "资金授权解冻", notes = "支付请求")
|
|
@@ -325,7 +342,7 @@ public class AliPay01Controller {
|
|
|
JSONObject bizContent = new JSONObject();
|
|
|
bizContent.put("auth_no",authNo);
|
|
|
bizContent.put("out_request_no","outRequestNo123");
|
|
|
- bizContent.put("amount",amount);
|
|
|
+ bizContent.put("amount", amount);
|
|
|
bizContent.put("remark","解冻资金");
|
|
|
JSONObject extraParam = new JSONObject();
|
|
|
JSONObject unfreezeBizInfo = new JSONObject();
|
|
@@ -337,10 +354,10 @@ public class AliPay01Controller {
|
|
|
// 使用execute方法发起请求
|
|
|
AlipayFundAuthOrderUnfreezeResponse response = client.execute(request);
|
|
|
if(response.isSuccess()){
|
|
|
- logger.info("解冻资金成功",response.getBody());
|
|
|
+ logger.info("解冻资金成功", response.getBody());
|
|
|
return R.fail("解冻资金成功!");
|
|
|
}
|
|
|
- logger.info("解冻资金失败",response.getBody());
|
|
|
+ logger.info("解冻资金失败", response.getBody());
|
|
|
return R.fail("解冻资金失败!");
|
|
|
}
|
|
|
|
|
@@ -414,6 +431,7 @@ public class AliPay01Controller {
|
|
|
grantUpdate.setId(query.getId());
|
|
|
grantUpdate.setStatus(1);//已授权
|
|
|
grantUpdate.setAuthNo(auth_no);
|
|
|
+ grantUpdate.setFreezeTime(DateUtil.now());
|
|
|
boolean flg = orderGrantService.updateById(grantUpdate);
|
|
|
if (!flg){
|
|
|
log.info(errMsg + "-更新数据失败");
|
|
@@ -422,25 +440,63 @@ public class AliPay01Controller {
|
|
|
return "success";
|
|
|
}
|
|
|
|
|
|
+ @ApiLog("购买回调")
|
|
|
+ @RequestMapping(value = "/order_notify_url", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ @ApiOperation(value = "异步通知相应-购买回调", notes = "异步通知相应")
|
|
|
+ @ApiOperationSupport(order = 100)
|
|
|
+ public String orderNotify(HttpServletRequest request) throws AlipayApiException {
|
|
|
+ String errMsg = "购买回调";
|
|
|
+ //获取支付宝POST过来反馈信息
|
|
|
+ Map<String,String> params = new HashMap<>();
|
|
|
+ Map requestParams = request.getParameterMap();
|
|
|
+ for (Iterator iter = requestParams.keySet().iterator(); iter.hasNext ();) {
|
|
|
+ String name = ( String )iter.next();
|
|
|
+ String[] values = (String[])requestParams.get(name);
|
|
|
+ String valueStr="";
|
|
|
+ for(int i = 0;i < values.length; i++){
|
|
|
+ valueStr = (i== values.length-1)?valueStr+values[i]:valueStr+values[i] + ",";
|
|
|
+ }
|
|
|
+ //乱码解决,这段代码在出现乱码时使用。
|
|
|
+ //valueStr = new String(valueStr.getBytes("ISO-8859-1"), "utf-8");
|
|
|
+ params.put(name,valueStr);
|
|
|
+ }
|
|
|
+ log.info("params === " + params.toString());
|
|
|
+ //切记alipayPublicCertPath是支付宝公钥证书路径,请去open.alipay.com对应应用下载。
|
|
|
+ //boolean AlipaySignature.rsaCertCheckV1(Map<String, String> params, String publicKeyCertPath, String charset,String signType)
|
|
|
+ boolean flag = AlipaySignature.rsaCertCheckV1(params,properties.getAliPayCertPath(), AlipayConstants.CHARSET_UTF8,"RSA2");
|
|
|
+ log.info("flag === " + flag);
|
|
|
+ String out_trade_no = request.getParameter("out_trade_no");//获取请求参数中的商户订单号
|
|
|
+ Order order = orderService.getOne(Wrappers.<Order>lambdaQuery().eq(Order::getOutTradeNo, out_trade_no));
|
|
|
+ if (order == null){
|
|
|
+ log.info(errMsg + "-订单无数据");
|
|
|
+ return "error";
|
|
|
+ }
|
|
|
+ //寄售和购买
|
|
|
+ orderService.payCommonSuccess(out_trade_no,"aliPay");
|
|
|
+ return "success";
|
|
|
+ }
|
|
|
+
|
|
|
@ApiLog("购买进货回调")
|
|
|
@RequestMapping(value = "/trade_notify_url", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ApiOperation(value = "异步通知相应-购买进货回调", notes = "异步通知相应")
|
|
|
@ApiOperationSupport(order = 100)
|
|
|
public String tradeNotify(HttpServletRequest request) {
|
|
|
String errMsg = "购买进货回调";//抢购改为进货
|
|
|
- logger.info(errMsg, request.getParameterMap().toString());
|
|
|
+ log.info(errMsg, request.getParameterMap().toString());
|
|
|
if (!NotifyUtils.rsaCheck(properties, request.getParameterMap())) {
|
|
|
//这里处理验签失败
|
|
|
log.info(errMsg + "-处理验签失败" + request.getParameterMap());
|
|
|
return "error";
|
|
|
}
|
|
|
String out_trade_no = request.getParameter("out_trade_no");//获取请求参数中的商户订单号
|
|
|
+ log.info(errMsg, "out_trade_no == " + out_trade_no);
|
|
|
Order order = orderService.getOne(Wrappers.<Order>lambdaQuery().eq(Order::getOutTradeNo, out_trade_no));
|
|
|
if (order == null){
|
|
|
log.info(errMsg + "-订单无数据");
|
|
|
return "error";
|
|
|
}
|
|
|
if(order.getOrderType() == 3){
|
|
|
+ log.info(errMsg, "寄售订单 == " + order.getOrderType());
|
|
|
//通过订单号获取寄售人信息
|
|
|
OrderConsign orderConsign = orderConsignService.getOne(Wrappers.<OrderConsign>lambdaQuery().eq(OrderConsign::getOutTradeNo, out_trade_no));
|
|
|
if (orderConsign == null){
|
|
@@ -459,11 +515,13 @@ public class AliPay01Controller {
|
|
|
log.info(errMsg + "-预授权无数据");
|
|
|
return "error";
|
|
|
}
|
|
|
+ log.info(errMsg, "修改授权信息 == " + query);
|
|
|
OrderGrant grantUpdate = new OrderGrant();
|
|
|
grantUpdate.setId(query.getId());
|
|
|
if (query.getNowNum() == 1){
|
|
|
grantUpdate.setStatus(2);//解冻
|
|
|
grantUpdate.setNowNum(0);
|
|
|
+ grantUpdate.setUnfreezeTime(DateUtil.now());//解冻时间
|
|
|
}else{
|
|
|
//状态不变
|
|
|
grantUpdate.setNowNum(query.getNowNum() - 1);//减少数量
|
|
@@ -478,18 +536,21 @@ public class AliPay01Controller {
|
|
|
//获取寄售人信息
|
|
|
UserApp userApp = new UserApp();
|
|
|
UserApp user = userApp.selectOne(Wrappers.<UserApp>lambdaQuery().eq(UserApp::getUserId,consign.getConsignUserId()));
|
|
|
+ log.info(errMsg, "-获取寄售人信息进行打款,用户信息:" + user);
|
|
|
if (user != null && user.getUserId() != null){
|
|
|
User u = userService.getById(user.getUserId());
|
|
|
if (u != null && u.getRealName() != null){
|
|
|
//向寄售人打款
|
|
|
- log.info(errMsg + "-向寄售人打款");
|
|
|
+ log.info(errMsg + "- 向寄售人打款: 寄售人信息支付宝账号:" + user.getAlipayUserId() + "姓名:" + u.getRealName());
|
|
|
transfer(user.getAlipayUserId(),u.getRealName(), Double.toString(query.getPrice()));
|
|
|
}else{
|
|
|
- log.info(errMsg + "-修改失败");
|
|
|
+ log.info(errMsg + "- 修改失败");
|
|
|
}
|
|
|
}else{
|
|
|
log.info(errMsg + "-修改失败");
|
|
|
}
|
|
|
+ }else{
|
|
|
+ log.info(errMsg, "寄售来源为后台 == 无需打款" );
|
|
|
}
|
|
|
}else{
|
|
|
log.info(errMsg + "-购买订单回调");
|
|
@@ -501,6 +562,7 @@ public class AliPay01Controller {
|
|
|
|
|
|
private void transfer(String identity, String name, String transAmount){
|
|
|
try {
|
|
|
+ log.info("向用户【" + name +" 】打款开始,打款账号:" + identity);
|
|
|
String privateKey = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCU4XTbNjnNOmuEnwBEgUBOVLK5CaUiUFKEkVW1/2sTlijARZzLtzwXfbkvzHEhCSu+E+OA1Futbh5HwNAC06bvqYDS+TXrFuZ0LcDaU92lk5Hp/ed8NhRXtm0gss1TS0vebOq+3kejErIvVCg9kNMrYMrmdf8G0+zKlCp3vrfdM37IeLXp3GoOckNzHh/LT7rLd7/9QcdSCPixPSwusrfCusw3H093cuWkV9WX4Go/zHTL9rAEwJPOn36OhyVc1oG113ZJiVg7KgsZGOCJJyh9BvlKq2vuKxnylQwq9Kh5e+BfP2FSWs7a1XMj/79JsZTxztJ9tFqcSXQh99vq1nd1AgMBAAECggEAVglIT5oxoxEcq0J7lBshf2Lg+Z/CR2clmKioYImfZm1DVYGlD/DvECA+kYnS4qV7GthBg+S0qi/V3d9mFgwcD6nj4YfVCets+Dyskz8d+p6iFxf820IhVWL+A4Rwta7wxDQrIGwx9+JJCKLYsmNsNUg1WSNdYqO71oHzXMnhVTmYJ6sKOrrBucyI4Ydu9UbfN+DRRGD9seL+Nxh1V2PPXs4ftk2kRlG18LaTPgFba1g8QBIpGDR9gFqM+DvBHUxAWsPRnL1+q0c6o5Ndk7W5f7Ob1zxF/lgqHudiG38jItkwc7MLMOYjbV5wiJPZc93nsHS1CKPSEX9/snNLnx2LQQKBgQDMyLBVVasfTMQpMjyi+Jof9JLHPiRP3dEHwZECUgfdWhPoidLjK9y1wszmCLrcg01842WufrpbJ1QXs+g8x6+DhLHvcKum1znsvQKWdy/2V6a2eahNHsYi1Qus+N0dFgotfZwfElfkIU/jAwh6OnYPCXQCVmdvoxzmdk81L04d5QKBgQC6HY6EZ8o4mo4CzDss2qxT2oKuiI0clnbDPC9LJzkRBVbHosx6AO+C3RyfREZxMzNhYW3XnozifDyRw6rlvI6toE3l9ku71dJS1aKZwbH/h0rdHXXqDHARYc9rdwCzOM2t2Kve/PgXxCDQdwY/m0deXM22oKdOlb7miz2YTGLaUQKBgEg8qucPNzPtUmztybH7W/LVxUj/RLPfnTLNNyfIY/nTIp6ur3NvL4X2V2z1u2S59IWPeXjaP0aUUvehgNSf4+vSzSmXZxWNamN2MQl+ta6CMM7Bj3rU1jPHTz0O9ICkG6b8Xiwfvl082v9LPJxRLwAS55dDf21D7pflN/+c1kN5AoGARaRHrt3TeojCuONJBUiyERKDseFgxCC9QeLkY3/Cx86yoTMWxlRRSyuHyUTYAwXApSC65GLsntcUJwsLiLmcvfVtEK6vuhKRh/Nuy5ACFfa/Gawrci/DQ43Q+opmFaoctH+OGHuaLfJywO64xNZKx1F8nGjTEgHQlB3oJ3P1zXECgYBW/GRUU+SevGeLjZTZ9WqG+ztseItnmEwmar9tGhR9TNv3vDiL5/fsAfI8ApMiIzDe6+QfS5Lxx5rD6V4Et/zBpsf8JzqP2eDiTe9UiHxDr2v5NIxelf404VZcdRh83u84lCJTa/ZYanFu94UW6h70MHhDWtiWddtFR3EXt5hD9w==";
|
|
|
String alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhIxPBQL0OKBc6fcU/9PdVTMA7L2s314oU2w1q06ywQSDdhF3RY1Bo0Eqh4Zg8QpPirFeyAc4rhFjyKZRlngQXrybcAhUfswD86QQGodObe3aA9bbWdXiTt10Q5CBk5GImadNiEW6Adh+0bY5ezf1RbxIjbGDfH6x5gatZnpjPswiHMQnskZtg9JSfE2u8WEKuSaH8yhnkllHpIHWnWvFvXwNVNycXdmDrEe7gIB1yCouNK6/DZ7IQH2AajSuvbxmCqO0MzywEfgvLqE0GFVsKKmXvgJebRAnW9RmGhmrxvEIceXCjR3tbxM9gX8lioDlqKnBootTgAbjIJ5VrPvKPwIDAQAB";
|
|
|
AlipayConfig alipayConfig = new AlipayConfig();
|
|
@@ -540,8 +602,10 @@ public class AliPay01Controller {
|
|
|
request.setBizModel(model);
|
|
|
AlipayFundTransUniTransferResponse response = alipayClient.certificateExecute(request);
|
|
|
if (!response.isSuccess()){
|
|
|
+ log.info("向用户【" + name +" 】打款失败,打款账号:" + identity);
|
|
|
logger.info("打款失败", ",打款人:" + name + "支付宝账号:" + identity);
|
|
|
}else{
|
|
|
+ log.info("向用户【" + name +" 】打款成功,打款账号:" + identity);
|
|
|
logger.info("打款成功", ",打款人:" + name + "支付宝账号:" + identity);
|
|
|
}
|
|
|
} catch (AlipayApiException e) {
|