wesmiler 2 godzin temu
rodzic
commit
ab62ddb949
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Services/Api/GoodsService.php

+ 1 - 1
app/Services/Api/GoodsService.php

@@ -414,7 +414,7 @@ class GoodsService extends BaseService
             return false;
         }
 
-        if($couponStatus != 1){
+        if($couponInfo && $couponStatus != 1){
             $this->error = "该优惠券已被使用";
             return false;
         }