Kirin 2 lat temu
rodzic
commit
ca79a6c1dd
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      app/models/store/StoreCart.php

+ 4 - 4
app/models/store/StoreCart.php

@@ -196,16 +196,16 @@ class StoreCart extends BaseModel
         if ($store_id) $model = $model->where('c.store_id', 'IN', $store_id);
         if ($type >= 0) switch ($type) {
             case 1:
-                $model = $model->where('is_suit', 1);
+                $model = $model->where('c.is_suit', 1);
                 break;
             case 2:
-                $model = $model->where('store_bag', 1);
+                $model = $model->where('c.store_bag', 1);
                 break;
             case 3:
-                $model = $model->where('is_bind', 1);
+                $model = $model->where('c.is_bind', 1);
                 break;
             default:
-                $model = $model->where('is_suit', 0)->where('store_bag', 0)->where('is_bind', 0);
+                $model = $model->where('c.is_suit', 0)->where('c.store_bag', 0)->where('c.is_bind', 0);
                 break;
         }
         $model = $model->order('c.add_time DESC');