|
@@ -434,8 +434,8 @@ public class Api05Controller extends BladeController {
|
|
|
data.put("buyer_id", query.getAlipayUserId()); //买家ID //2088012801069195
|
|
|
//APP支付
|
|
|
AlipayTradePayRequest request = new AlipayTradePayRequest();
|
|
|
- request.setNotifyUrl(properties.getDomain() + TRADE_URL); //异步通知地址
|
|
|
- request.setBizContent(data.toJSONString()); //业务参数
|
|
|
+// request.setNotifyUrl(properties.getDomain() + TRADE_URL); //异步通知地址
|
|
|
+// request.setBizContent(data.toJSONString()); //业务参数
|
|
|
//APP支付
|
|
|
try {
|
|
|
//订单绑定授权号
|
|
@@ -446,19 +446,20 @@ public class Api05Controller extends BladeController {
|
|
|
if (!flg){
|
|
|
log.info("订单绑定失败 + update.toString()");
|
|
|
}
|
|
|
+ orderService.payConsignSuccess(order);
|
|
|
+ return true;
|
|
|
//普通模式 使用 execute
|
|
|
//证书使用 使用 certificateExecute
|
|
|
- AlipayTradePayResponse response = client.certificateExecute(request);
|
|
|
- if (response.isSuccess()){
|
|
|
- orderService.payConsignSuccess(order);
|
|
|
- return true;
|
|
|
- }else{
|
|
|
- orderGrantService.remove(Wrappers.<OrderGrant>lambdaQuery()
|
|
|
- .eq(OrderGrant::getId,orderGrant.getId())
|
|
|
- .eq(OrderGrant::getStatus, 0));
|
|
|
- log.info("订单绑定失败 + 删除预授权数据");
|
|
|
- }
|
|
|
- } catch (AlipayApiException e) {
|
|
|
+// AlipayTradePayResponse response = client.certificateExecute(request);
|
|
|
+// if (response.isSuccess()){
|
|
|
+//
|
|
|
+// }else{
|
|
|
+// orderGrantService.remove(Wrappers.<OrderGrant>lambdaQuery()
|
|
|
+// .eq(OrderGrant::getId,orderGrant.getId())
|
|
|
+// .eq(OrderGrant::getStatus, 0));
|
|
|
+// log.info("订单绑定失败 + 删除预授权数据");
|
|
|
+// }
|
|
|
+ } catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return false;
|