作者 lyh

gx

@@ -161,9 +161,9 @@ class CustomTemplateLogic extends BaseLogic @@ -161,9 +161,9 @@ class CustomTemplateLogic extends BaseLogic
161 $data = ['dra'=>0,'pub'=>1,'del'=>2,'tal'=>3]; 161 $data = ['dra'=>0,'pub'=>1,'del'=>2,'tal'=>3];
162 foreach ($data as $k => $v){ 162 foreach ($data as $k => $v){
163 if($v == 3){ 163 if($v == 3){
164 - $data[$k] = $this->model->where(['deleted_status'=>0])->count(); 164 + $data[$k] = $this->model->where(['deleted_status'=>0,'project_id'=>$this->user['project_id']])->count();
165 }else{ 165 }else{
166 - $data[$k] = $this->model->where(['status'=>$v,'deleted_status'=>0])->count(); 166 + $data[$k] = $this->model->where(['status'=>$v,'deleted_status'=>0,'project_id'=>$this->user['project_id']])->count();
167 } 167 }
168 } 168 }
169 return $this->success($data); 169 return $this->success($data);
@@ -26,6 +26,9 @@ class WebSettingTextLogic extends BaseLogic @@ -26,6 +26,9 @@ class WebSettingTextLogic extends BaseLogic
26 public function setting_read(){ 26 public function setting_read(){
27 $web_setting = new WebSetting(); 27 $web_setting = new WebSetting();
28 $setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num']); 28 $setting_info = $web_setting->read(['project_id'=>$this->user['project_id']],['anchor_setting','anchor_is_enable','anchor_num']);
  29 + if($setting_info === false){
  30 + $setting_info = [];
  31 + }
29 return $setting_info; 32 return $setting_info;
30 } 33 }
31 34