zhuyifan

fix:修复支付订单状态校验逻辑

...@@ -131,8 +131,8 @@ public class PayServiceClient { ...@@ -131,8 +131,8 @@ public class PayServiceClient {
131 log.error("Order not found, orderId: {}", orderId); 131 log.error("Order not found, orderId: {}", orderId);
132 return false; 132 return false;
133 } 133 }
134 - if (orderById.getPayStatus() != PayStatusEnum.IN_PROGRESS) { 134 + if (orderById.getPayStatus() != PayStatusEnum.TO_PAY && orderById.getPayStatus() != PayStatusEnum.IN_PROGRESS) {
135 - log.info("Order {} already processed, skipping.", orderId); 135 + log.error("Order status is not TO_PAY or IN_PROGRESS, orderId: {}", orderId);
136 return true; 136 return true;
137 } 137 }
138 long payTime; 138 long payTime;
......