Quellcode durchsuchen

bugfix:支付修改完成

刘云鑫 vor 18 Stunden
Ursprung
Commit
eebdc0dfcf

+ 3 - 3
alien-dining/src/main/java/shop/alien/dining/service/impl/StoreOrderServiceImpl.java

@@ -825,9 +825,9 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
         }
 
         // 检查订单状态:只有已支付状态(1)的订单才能完成
-        if (order.getOrderStatus() != 1) {
-            throw new RuntimeException("订单状态不正确,只有已支付状态的订单才能完成");
-        }
+//        if (order.getOrderStatus() != 1) {
+//            throw new RuntimeException("订单状态不正确,只有已支付状态的订单才能完成");
+//        }
 
         // 检查支付状态:确保订单已支付
         if (order.getPayStatus() != 1) {