Merge remote-tracking branch 'origin/develop' into akun
正在显示
1 个修改的文件
包含
14 行增加
和
10 行删除
| @@ -149,17 +149,21 @@ class BaseLogic extends Logic | @@ -149,17 +149,21 @@ class BaseLogic extends Logic | ||
| 149 | function updateNotify($data) | 149 | function updateNotify($data) |
| 150 | { | 150 | { |
| 151 | $updateNotifyModel = new UpdateNotify(); | 151 | $updateNotifyModel = new UpdateNotify(); |
| 152 | - $info = $updateNotifyModel->read(['project_id'=>$data['project_id'],'route'=>$data['route'],'status'=>1]); | ||
| 153 | - if($info === false){ | ||
| 154 | - $param = [ | ||
| 155 | - 'project_id'=>$data['project_id'], | ||
| 156 | - 'type'=>$data['type'], | ||
| 157 | - 'route'=>$data['route'], | ||
| 158 | - ]; | ||
| 159 | - $updateNotifyModel->add($param); | 152 | + if($data['route'] != 'all'){ |
| 153 | + $info = $updateNotifyModel->read(['project_id'=>$data['project_id'],'route'=>$data['route'],'status'=>1]); | ||
| 154 | + if($info === false){ | ||
| 155 | + $param = [ | ||
| 156 | + 'project_id'=>$data['project_id'], | ||
| 157 | + 'type'=>$data['type'], | ||
| 158 | + 'route'=>$data['route'], | ||
| 159 | + ]; | ||
| 160 | + $updateNotifyModel->add($param); | ||
| 161 | + } | ||
| 162 | + //单页面直接通知更新 | ||
| 163 | + $url = $this->user['domain'].'api/delHtml/?project_id='.$this->user['project_id'].'&route='.$data['route']; | ||
| 164 | + }else{ | ||
| 165 | + $url = $this->user['domain'].'api/webInfo/?type=clear_website'; | ||
| 160 | } | 166 | } |
| 161 | - //单页面直接通知更新 | ||
| 162 | - $url = $this->user['domain'].'api/delHtml/?project_id='.$this->user['project_id'].'&route='.$data['route']; | ||
| 163 | curlGet($url); | 167 | curlGet($url); |
| 164 | return $this->success(); | 168 | return $this->success(); |
| 165 | } | 169 | } |
-
请 注册 或 登录 后发表评论