作者 lyh

gx

@@ -9,6 +9,7 @@ use App\Http\Logic\Logic; @@ -9,6 +9,7 @@ use App\Http\Logic\Logic;
9 use App\Models\Com\UpdateNotify; 9 use App\Models\Com\UpdateNotify;
10 use App\Models\Project\Project; 10 use App\Models\Project\Project;
11 use App\Models\RouteMap\RouteDelete; 11 use App\Models\RouteMap\RouteDelete;
  12 +use App\Models\Service\Service;
12 use Illuminate\Support\Facades\Cache; 13 use Illuminate\Support\Facades\Cache;
13 use Illuminate\Support\Str; 14 use Illuminate\Support\Str;
14 15
@@ -173,7 +174,7 @@ class BaseLogic extends Logic @@ -173,7 +174,7 @@ class BaseLogic extends Logic
173 $data['project_id'] = $this->user['project_id']; 174 $data['project_id'] = $this->user['project_id'];
174 $str = http_build_query($data); 175 $str = http_build_query($data);
175 $url = $this->user['domain'].'api/delHtml/?'.$str; 176 $url = $this->user['domain'].'api/delHtml/?'.$str;
176 - if($this->user['project_id'] == 672){//TODO::当前项目通知不过 ,跳过自动更新 177 + if(isset($this->project['serve_id']) && ($this->project['serve_id'] == 3)){//TODO::当前项目通知不过 ,跳过自动更新
177 exec('curl -k "'.$url.'" > /dev/null 2>&1 &'); 178 exec('curl -k "'.$url.'" > /dev/null 2>&1 &');
178 }else{ 179 }else{
179 shell_exec('curl -k "'.$url.'"'); 180 shell_exec('curl -k "'.$url.'"');