正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论