作者 lyh

gx

... ... @@ -161,9 +161,9 @@ class CustomTemplateLogic extends BaseLogic
$data = ['dra'=>0,'pub'=>1,'del'=>2,'tal'=>3];
foreach ($data as $k => $v){
if($v == 3){
$data[$k] = $this->model->where(['deleted_status'=>0])->count();
$data[$k] = $this->model->where(['deleted_status'=>0,'project_id'=>$this->user['project_id']])->count();
}else{
$data[$k] = $this->model->where(['status'=>$v,'deleted_status'=>0])->count();
$data[$k] = $this->model->where(['status'=>$v,'deleted_status'=>0,'project_id'=>$this->user['project_id']])->count();
}
}
return $this->success($data);
... ...
... ... @@ -26,6 +26,9 @@ class WebSettingTextLogic extends BaseLogic
public function setting_read(){
$web_setting = new WebSetting();
$setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num']);
if($setting_info === false){
$setting_info = [];
}
return $setting_info;
}
... ...