Commit f3747c80 authored by macro's avatar macro
Browse files

修改支付状态查询逻辑

parent b3bc051e
......@@ -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("查询支付宝账单失败!");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment