修复内容
This commit is contained in:
@@ -32,11 +32,11 @@ class GoodsCategoryLogic{
|
||||
* @author: 2021/3/6 18:49
|
||||
*/
|
||||
public static function categoryThirdTree($client,$type){
|
||||
$cache_key = 'goods_category_'.$client.'_'.$type;
|
||||
$cache = Cache::get($cache_key);
|
||||
if ($cache) {
|
||||
return $cache;
|
||||
}
|
||||
// $cache_key = 'goods_category_'.$client.'_'.$type;
|
||||
// $cache = Cache::get($cache_key);
|
||||
// if ($cache) {
|
||||
// return $cache;
|
||||
// }
|
||||
|
||||
// 构建查询条件
|
||||
$where1 = ['is_show'=>1,'del'=>0,'level'=>1];
|
||||
@@ -137,7 +137,7 @@ class GoodsCategoryLogic{
|
||||
}
|
||||
}
|
||||
|
||||
Cache::set($cache_key, array_values($lists));
|
||||
// Cache::set($cache_key, array_values($lists));
|
||||
return array_values($lists);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user