Commit 549a2175 authored by liuyang's avatar liuyang

fixed 支付宝支付的bug

parent 45b7074e
......@@ -230,7 +230,7 @@ public class ProductOrderService extends ServiceImpl<ProductOrderMapper, Product
if (StrUtil.isBlank(queryResult)){
//订单不存在
// updateStatus(orderNo,ProductOrderStatusEnum.PAY_CLOSE);
return ProductOrderStatusEnum.PAY_CLOSE;
return ProductOrderStatusEnum.WAIT_PAY;
}else if (queryResult.equals("TRADE_SUCCESS") || queryResult.equals("TRADE_FINISHED")){
// updateStatus(orderNo,ProductOrderStatusEnum.PAY_COMPLETE);
return ProductOrderStatusEnum.PAY_COMPLETE;
......@@ -399,6 +399,9 @@ public class ProductOrderService extends ServiceImpl<ProductOrderMapper, Product
if (response.isSuccess()){
//关单成功
updateStatus(orderNo,ProductOrderStatusEnum.PAY_CLOSE);
}else if (response.getCode().equals("40004") && response.getSubCode().equals("ACQ.TRADE_NOT_EXIST")){
//订单不存在
updateStatus(orderNo,ProductOrderStatusEnum.PAY_CLOSE);
}else {
//关单失败
log.error(JSONObject.toJSONString(response));
......
......@@ -49,7 +49,7 @@ public class TimeTaskService {
}
/**
* 每隔1分检查未支付订单状态
* 每隔1分检查未支付订单状态
*/
@Scheduled(cron = "0 0/1 * * * ?")
public void checkProductOrder(){
......
Markdown is supported
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