作者 lyh

gx

... ... @@ -45,6 +45,6 @@ class WebSettingController extends BaseController
if(!empty($list)){
$this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list);
}
$this->response('success',Code::SUCCESS,$list);
$this->response('success');
}
}
... ...
... ... @@ -73,25 +73,8 @@ 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'];
// $data = $this->curl_get($urlStr);
$data = http_get($urlStr);
return $this->success($data);
http_get($urlStr);
return $this->success();
}
public function curl_get($url){
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
return json_decode($response);
}
}
... ...