|
@@ -43,12 +43,12 @@ class Product extends Api{
|
|
|
// 分类ID
|
|
|
if( $name ) $map[] = ['name','like','%'.$name.'%'];
|
|
|
// 是否有城市
|
|
|
- $wherIn = empty($custom['city_id']) ? [1] : [1,$custom['city_id']];
|
|
|
+ //$wherIn = empty($custom['city_id']) ? [1] : [1,$custom['city_id']];
|
|
|
// 获取分页信息
|
|
|
$Paginator = $Model->query()
|
|
|
->join('product_city','product_city.product_id','=','product.id')
|
|
|
->where($map)
|
|
|
- ->whereIn('product_city.city_id',$wherIn)
|
|
|
+ //->whereIn('product_city.city_id',$wherIn)
|
|
|
->groupBy('product_id')
|
|
|
->paginate($limit,['product.id','product.name','product.thumb','product.spec','product.price','product.market_price','product.stock']);
|
|
|
// 获取数据
|