作者 lyh

gx

@@ -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';