作者 lyh

gx

@@ -45,6 +45,6 @@ class WebSettingController extends BaseController @@ -45,6 +45,6 @@ class WebSettingController extends BaseController
45 if(!empty($list)){ 45 if(!empty($list)){
46 $this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list); 46 $this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list);
47 } 47 }
48 - $this->response('success',Code::SUCCESS,$list); 48 + $this->response('success');
49 } 49 }
50 } 50 }
@@ -73,25 +73,8 @@ class WebSettingLogic extends BaseLogic @@ -73,25 +73,8 @@ class WebSettingLogic extends BaseLogic
73 } 73 }
74 $updateNotifyModel->edit(['status'=>1],['project_id'=>$this->user['project_id'],'status'=>0]); 74 $updateNotifyModel->edit(['status'=>1],['project_id'=>$this->user['project_id'],'status'=>0]);
75 $urlStr = 'https://'.$this->user['domain'].'/api/updateHtmlNotify?project_id='.$this->user['project_id']; 75 $urlStr = 'https://'.$this->user['domain'].'/api/updateHtmlNotify?project_id='.$this->user['project_id'];
76 -// $data = $this->curl_get($urlStr);  
77 - $data = http_get($urlStr);  
78 - return $this->success($data); 76 + http_get($urlStr);
  77 + return $this->success();
79 } 78 }
80 79
81 - public function curl_get($url){  
82 - $curl = curl_init();  
83 - curl_setopt_array($curl, array(  
84 - CURLOPT_URL => $url,  
85 - CURLOPT_RETURNTRANSFER => true,  
86 - CURLOPT_ENCODING => '',  
87 - CURLOPT_MAXREDIRS => 10,  
88 - CURLOPT_TIMEOUT => 0,  
89 - CURLOPT_FOLLOWLOCATION => true,  
90 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,  
91 - CURLOPT_CUSTOMREQUEST => 'GET',  
92 - ));  
93 - $response = curl_exec($curl);  
94 - curl_close($curl);  
95 - return json_decode($response);  
96 - }  
97 } 80 }