正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -66,9 +66,12 @@ class WebSettingLogic extends BaseLogic | @@ -66,9 +66,12 @@ class WebSettingLogic extends BaseLogic | ||
| 66 | */ | 66 | */ |
| 67 | public function sendNotifyMessage($type,$page){ | 67 | public function sendNotifyMessage($type,$page){ |
| 68 | $updateProgressModel = new UpdateProgress(); | 68 | $updateProgressModel = new UpdateProgress(); |
| 69 | - $progressInfo = $updateProgressModel->formatQuery(['project_id'=>$this->user['project_id'],'type'=>$type])->orderBy('id','desc')->first()->toArray(); | ||
| 70 | - if((!empty($progressInfo)) && ($progressInfo['total_num'] > $progressInfo['current_num'])){ | ||
| 71 | - return $this->success($progressInfo); | 69 | + $progressInfo = $updateProgressModel->formatQuery(['project_id'=>$this->user['project_id'],'type'=>$type])->orderBy('id','desc')->first(); |
| 70 | + if((!empty($progressInfo))){ | ||
| 71 | + $progressInfo = $progressInfo->toArray(); | ||
| 72 | + if(($progressInfo['total_num'] > $progressInfo['current_num'])){ | ||
| 73 | + return $this->success($progressInfo); | ||
| 74 | + } | ||
| 72 | } | 75 | } |
| 73 | $updateNotifyModel = new UpdateNotify(); | 76 | $updateNotifyModel = new UpdateNotify(); |
| 74 | $field = ($type == UpdateNotify::TYPE_MINOR) ? 'minor_languages_status' : 'status'; | 77 | $field = ($type == UpdateNotify::TYPE_MINOR) ? 'minor_languages_status' : 'status'; |
-
请 注册 或 登录 后发表评论