作者 lyh

gx

... ... @@ -73,8 +73,7 @@ class WebSettingLogic extends BaseLogic
}
$updateNotifyModel->edit(['status'=>1],['project_id'=>$this->user['project_id'],'status'=>0]);
$urlStr = 'https://'.$this->user['domain'].'/api/updateHtmlNotify?project_id='.$this->user['project_id'];
$header['charset'] = "UTF-8";
$rs = http_get($urlStr,$header);
$rs = $this->curl_get($urlStr);
var_dump($rs);
die();
return $this->success();
... ... @@ -83,7 +82,7 @@ class WebSettingLogic extends BaseLogic
public function curl_get($url){
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://dev.globalso.site/api/updateHtmlNotify?project_id=1',
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
... ... @@ -94,6 +93,6 @@ class WebSettingLogic extends BaseLogic
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
return $response;
}
}
... ...