正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -80,6 +80,9 @@ class FileManageController extends BaseController | @@ -80,6 +80,9 @@ class FileManageController extends BaseController | ||
| 80 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 80 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 81 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | 81 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
| 82 | curl_setopt($ch, CURLOPT_HEADER, false); | 82 | curl_setopt($ch, CURLOPT_HEADER, false); |
| 83 | + // 跳过 SSL 验证 | ||
| 84 | + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | ||
| 85 | + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); | ||
| 83 | // 执行 curl 请求 | 86 | // 执行 curl 请求 |
| 84 | $fileContent = curl_exec($ch); | 87 | $fileContent = curl_exec($ch); |
| 85 | $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); | 88 | $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
-
请 注册 或 登录 后发表评论