Merge branch 'sprint/fixbug#33382' into 'master'

* Fix bug #33382.

See merge request easycorp/zentaopms!7280
This commit is contained in:
胡方舟
2023-04-06 01:52:47 +00:00
+1 -1
View File
@@ -265,7 +265,7 @@ class feishuapi
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
if($_SERVER['HTTPS'] != 'on')
if(!isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] != 'on')
{
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);