|
...
|
...
|
@@ -65,8 +65,11 @@ 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');
|
|
|
|
if($number >= 450000){
|
|
|
|
$this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']);
|
|
|
|
if($this->user['project_id'] == $project_id){
|
|
|
|
$this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
...
|
...
|
|