xialei 1 год назад
Родитель
Сommit
9c2fae218f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/common/repositories/store/product/ProductRepository.php

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

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