修改支付状态查询逻辑
This commit is contained in:
@@ -23,6 +23,7 @@ public interface AlipayService {
|
||||
String notify(Map<String, String> params);
|
||||
|
||||
/**
|
||||
* 查询支付宝交易状态
|
||||
* @param outTradeNo 商户订单编号
|
||||
* @param tradeNo 支付宝交易编号
|
||||
* @return 支付宝交易状态
|
||||
|
||||
@@ -119,7 +119,9 @@ public class AlipayServiceImpl implements AlipayService {
|
||||
}
|
||||
if(response.isSuccess()){
|
||||
log.info("查询支付宝账单成功!");
|
||||
portalOrderService.paySuccessByOrderSn(outTradeNo,1);
|
||||
if("TRADE_SUCCESS".equals(response.getTradeStatus())){
|
||||
portalOrderService.paySuccessByOrderSn(outTradeNo,1);
|
||||
}
|
||||
} else {
|
||||
log.error("查询支付宝账单失败!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user