wupengfei 1 year ago
parent
commit
2d8d801c7c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Kuaishou.php

+ 2 - 2
application/api/controller/Kuaishou.php

@@ -45,7 +45,7 @@ class Kuaishou extends Base
         } else {
             $s = $Alibabahelper->curl_https_post($url, $arr);
         }
-        var_dump($arr,$url. '?' . http_build_query($arr, '', '&'), array());
+        //var_dump($arr,$url. '?' . http_build_query($arr, '', '&'), array());
         $s = json_decode($s, true);
         $this->success('ok',$s);
     }
@@ -99,7 +99,7 @@ class Alibabahelper {
         }
         if ($https) {
             curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); // 对认证证书来源的检查
-            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 1); // 从证书中检查SSL加密算法是否存在
+            curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2); // 从证书中检查SSL加密算法是否存在
             curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); // 使用自动跳转
 
         }