소스 검색

判断更改

xialei 1 년 전
부모
커밋
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 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);