作者 lyh

gx

@@ -81,6 +81,9 @@ class WebSettingLogic extends BaseLogic @@ -81,6 +81,9 @@ class WebSettingLogic extends BaseLogic
81 $routeMapModel = new RouteMap(); 81 $routeMapModel = new RouteMap();
82 $count = $routeMapModel->formatQuery(['project_id'=>$this->user['project_id'],'source'=>['!=','product_keyword']])->count(); 82 $count = $routeMapModel->formatQuery(['project_id'=>$this->user['project_id'],'source'=>['!=','product_keyword']])->count();
83 } 83 }
  84 + if($count == 0){
  85 + return $this->success();
  86 + }
84 $this->addProgress($count,$type); 87 $this->addProgress($count,$type);
85 $updateNotifyModel->edit([$field => 1], ['project_id' => $this->user['project_id'], $field => 0]); 88 $updateNotifyModel->edit([$field => 1], ['project_id' => $this->user['project_id'], $field => 0]);
86 $urlStr = $this->getString($type,$page); 89 $urlStr = $this->getString($type,$page);