作者 lyh

gx

@@ -75,11 +75,12 @@ class WebSettingLogic extends BaseLogic @@ -75,11 +75,12 @@ class WebSettingLogic extends BaseLogic
75 } 75 }
76 $updateNotifyModel = new UpdateNotify(); 76 $updateNotifyModel = new UpdateNotify();
77 $field = ($type == UpdateNotify::TYPE_MINOR) ? 'minor_languages_status' : 'status'; 77 $field = ($type == UpdateNotify::TYPE_MINOR) ? 'minor_languages_status' : 'status';
78 - $count = $updateNotifyModel->formatQuery(['project_id' => $this->user['project_id'], $field => 0])->count();  
79 if($page == UpdateNotify::PAGE_ALL){ 78 if($page == UpdateNotify::PAGE_ALL){
80 //如果是更新所有 79 //如果是更新所有
81 $routeMapModel = new RouteMap(); 80 $routeMapModel = new RouteMap();
82 - $count = $routeMapModel->formatQuery(['project_id'=>$this->user['project_id'],'source'=>['!=','product_keyword']])->count(); 81 + $count = $routeMapModel->formatQuery(['project_id'=>$this->user['project_id']])->count();
  82 + }else{
  83 + $count = $updateNotifyModel->formatQuery(['project_id' => $this->user['project_id'], $field => 0])->count();
83 } 84 }
84 if($count == 0){ 85 if($count == 0){
85 return $this->success(); 86 return $this->success();