xialei hai 1 ano
pai
achega
9c2fae218f

+ 1 - 1
app/common/repositories/store/product/ProductRepository.php

@@ -801,7 +801,7 @@ class ProductRepository extends BaseRepository
801 801
         $where = array_merge($where, $this->dao->productShow());
802 802
 
803 803
         $cateList = [];
804
-        if($where['cate_id']){
804
+        if(isset($where['cate_id']) && $where['cate_id']!= ''){
805 805
             $cate_name = Db::name('store_category')->where('pid', 564)->where('store_category_id', $where['cate_id'])->value('cate_name');
806 806
             $url = "https://dc-api.gdjbp.com/douhuomallCategory/getCateAll";
807 807
             $result = curlGet($url);