Kaynağa Gözat

寄售转让收藏列表

afa 7 ay önce
ebeveyn
işleme
da8173d38e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      application/api/controller/Product.php

+ 1 - 1
application/api/controller/Product.php

@@ -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")