|
...
|
...
|
@@ -14,7 +14,6 @@ class WebSettingLogic extends BaseLogic |
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
$this->model = new WebSetting();
|
|
|
|
$this->param = $this->requestAll;
|
|
|
|
}
|
|
...
|
...
|
@@ -26,13 +25,9 @@ class WebSettingLogic extends BaseLogic |
|
|
|
* @time :2023/4/28 15:14
|
|
|
|
*/
|
|
|
|
public function setting_read(){
|
|
|
|
$info = CommonHelper::get_user_cache($this->model->getTable(),$this->user['project_id']);
|
|
|
|
if(empty($info)){
|
|
|
|
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
if($info === false){
|
|
|
|
$info = [];
|
|
|
|
}
|
|
|
|
CommonHelper::set_user_cache($info,$this->model->getTable(),$this->user['project_id']);
|
|
|
|
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
if($info === false){
|
|
|
|
$info = [];
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
...
|
...
|
|