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