作者 lyh

gx数据

@@ -65,9 +65,9 @@ class CNoticeController extends BaseController @@ -65,9 +65,9 @@ class CNoticeController extends BaseController
65 $keyword_num = (new Keyword())->counts(['route'=>['!=',null]]); 65 $keyword_num = (new Keyword())->counts(['route'=>['!=',null]]);
66 $data_num = $this->productNum() + $this->CustomNum() + $this->newsNum() + $this->blogNum(); 66 $data_num = $this->productNum() + $this->CustomNum() + $this->newsNum() + $this->blogNum();
67 $number = $keyword_num * 18 + $lang_num * $data_num; 67 $number = $keyword_num * 18 + $lang_num * $data_num;
68 - $project_id = env('PROJECT_ID'); 68 + $project_id_arr = env('PROJECT_ID');
69 if($number >= 450000){ 69 if($number >= 450000){
70 - if($this->user['project_id'] != $project_id){ 70 + if(!in_array($this->user['project_id'],$project_id_arr)){
71 $this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']); 71 $this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']);
72 } 72 }
73 } 73 }