diff --git a/app/common/repositories/store/product/SpuRepository.php b/app/common/repositories/store/product/SpuRepository.php index 4a1fa59b..d3445bf7 100644 --- a/app/common/repositories/store/product/SpuRepository.php +++ b/app/common/repositories/store/product/SpuRepository.php @@ -187,6 +187,7 @@ class SpuRepository extends BaseRepository foreach ($productIds as $productId) { $RedisCacheService->SADD($dataKey, $productId); } + //halt($productIds); } $where['product_id'] = $this->getSpuFromCache($where['mer_id'], $page, $limit); unset($where['mer_id'], $where['page']); diff --git a/app/controller/api/Common.php b/app/controller/api/Common.php index 5cf487d0..951f9fcc 100644 --- a/app/controller/api/Common.php +++ b/app/controller/api/Common.php @@ -497,6 +497,7 @@ class Common extends BaseController public function get_cloud_shop($street_code){ //更新查询镇级供应链店铺 $typeTownSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTownSupplyChain'])->value('mer_type_id'); + /* $find=DB::name('merchant') ->alias('m') ->where('m.type_id',$typeTownSupplyChainId) @@ -505,6 +506,10 @@ class Common extends BaseController ->where('m.street_id',$street_code) ->join('merchant_category c','m.category_id=c.merchant_category_id') ->field('m.mer_id,category_id,category_name,c.background,c.cover,c.description')->select(); + */ + $find=DB::name('merchant_category') + ->where('cover', '<>' ,'') + ->field('merchant_category_id as category_id,category_name,background,cover,description')->select(); return app('json')->success($find??[]); } }