正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -66,10 +66,13 @@ class WebSettingLogic extends BaseLogic | @@ -66,10 +66,13 @@ 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'])){ | 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'])){ | ||
| 71 | return $this->success($progressInfo); | 73 | return $this->success($progressInfo); |
| 72 | } | 74 | } |
| 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'; |
| 75 | $count = $updateNotifyModel->formatQuery(['project_id' => $this->user['project_id'], $field => 0])->count(); | 78 | $count = $updateNotifyModel->formatQuery(['project_id' => $this->user['project_id'], $field => 0])->count(); |
-
请 注册 或 登录 后发表评论