作者 刘锟

Merge remote-tracking branch 'origin/develop' into akun

... ... @@ -149,17 +149,21 @@ class BaseLogic extends Logic
function updateNotify($data)
{
$updateNotifyModel = new UpdateNotify();
$info = $updateNotifyModel->read(['project_id'=>$data['project_id'],'route'=>$data['route'],'status'=>1]);
if($info === false){
$param = [
'project_id'=>$data['project_id'],
'type'=>$data['type'],
'route'=>$data['route'],
];
$updateNotifyModel->add($param);
if($data['route'] != 'all'){
$info = $updateNotifyModel->read(['project_id'=>$data['project_id'],'route'=>$data['route'],'status'=>1]);
if($info === false){
$param = [
'project_id'=>$data['project_id'],
'type'=>$data['type'],
'route'=>$data['route'],
];
$updateNotifyModel->add($param);
}
//单页面直接通知更新
$url = $this->user['domain'].'api/delHtml/?project_id='.$this->user['project_id'].'&route='.$data['route'];
}else{
$url = $this->user['domain'].'api/webInfo/?type=clear_website';
}
//单页面直接通知更新
$url = $this->user['domain'].'api/delHtml/?project_id='.$this->user['project_id'].'&route='.$data['route'];
curlGet($url);
return $this->success();
}
... ...