作者 lyh

gx

... ... @@ -125,8 +125,8 @@ class ProductController extends BaseController
* @time :2023/9/14 13:56
*/
public function getCategoryList(){
$data = Common::get_user_cache('product_category',$this->user['project_id']);
if(empty($data)){
// $data = Common::get_user_cache('product_category',$this->user['project_id']);
// if(empty($data)){
$categoryModel = new Category();
$data = [];
$cateList = $categoryModel->list(['project_id'=>$this->user['project_id']],['id','title']);
... ... @@ -135,8 +135,8 @@ class ProductController extends BaseController
$data[$value['id']] = $value['title'];
}
}
Common::set_user_cache($data,'product_category',$this->user['project_id']);
}
// Common::set_user_cache($data,'product_category',$this->user['project_id']);
// }
return $data;
}
... ... @@ -148,8 +148,8 @@ class ProductController extends BaseController
* @time :2023/9/14 13:56
*/
public function getKeywordsList(){
$data = Common::get_user_cache('product_keyword',$this->user['project_id']);
if(empty($data)) {
// $data = Common::get_user_cache('product_keyword',$this->user['project_id']);
// if(empty($data)) {
$keywordModel = new Keyword();
$data = [];
$cateList = $keywordModel->list(['project_id' => $this->user['project_id']], ['id', 'title']);
... ... @@ -158,8 +158,8 @@ class ProductController extends BaseController
$data[$value['id']] = $value['title'];
}
}
Common::set_user_cache($data,'product_keyword',$this->user['project_id']);
}
// Common::set_user_cache($data,'product_keyword',$this->user['project_id']);
// }
return $data;
}
... ...