Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into zentaopms_289

This commit is contained in:
caoyanyi
2023-03-02 13:18:34 +08:00
24 changed files with 63 additions and 49 deletions
+2 -2
View File
@@ -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);