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