|
|
@@ -105,7 +105,7 @@ class Product extends Api
|
|
|
$order = 'a.price ASC';
|
|
|
if($sort == 1) $order = 'a.price DESC';
|
|
|
$map['a.status'] = $productMarket::Normal;
|
|
|
- if(!empty($type_id)) $map['b.type_id'] = $type_id;
|
|
|
+ if(!empty($type_id)) $map['a.type_id'] = $type_id;
|
|
|
if(!empty($key_val)) $map['b.'.$this->lan.'_name'] = ['like', '%'.$key_val.'%'];
|
|
|
$list = $productMarket->alias('a')
|
|
|
->join("product_list b", "a.product_id = b.id", "left")
|