|
...
|
...
|
@@ -61,16 +61,17 @@ class CNoticeController extends BaseController |
|
|
|
],[
|
|
|
|
'language.required' => 'language不能为空',
|
|
|
|
]);
|
|
|
|
$project_id_arr = env('PROJECT_ID');
|
|
|
|
if(in_array($this->user['project_id'],$project_id_arr)){
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
$lang_num = count($this->param['language']);
|
|
|
|
$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_arr = env('PROJECT_ID');
|
|
|
|
if($number >= 450000){
|
|
|
|
if(!in_array($this->user['project_id'],$project_id_arr)){
|
|
|
|
$this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|