正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -65,8 +65,11 @@ class CNoticeController extends BaseController | @@ -65,8 +65,11 @@ 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 | if($number >= 450000){ | 69 | if($number >= 450000){ |
| 69 | - $this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']); | 70 | + if($this->user['project_id'] == $project_id){ |
| 71 | + $this->response('success',Code::SUCCESS,['msg'=>'翻译数量过多, 大概页面数量:'.$number.', 磁盘空间占用可能会超过40G,请联系管理员操作!']); | ||
| 72 | + } | ||
| 70 | } | 73 | } |
| 71 | $this->response('success'); | 74 | $this->response('success'); |
| 72 | } | 75 | } |
-
请 注册 或 登录 后发表评论