Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into zentaopms_289
This commit is contained in:
@@ -644,8 +644,8 @@ class adminModel extends model
|
||||
*/
|
||||
public function checkInternet()
|
||||
{
|
||||
$timeoutMS = 500;
|
||||
$curl = curl_init();
|
||||
$timeoutMS = 400;
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $this->config->admin->apiSite);
|
||||
curl_setopt($curl, CURLOPT_TIMEOUT_MS, $timeoutMS);
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT_MS, $timeoutMS);
|
||||
|
||||
Reference in New Issue
Block a user