|
@@ -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
|
} |