From a1c12d6b2f6cfda443f26ab59530fd9794e0daa3 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Fri, 10 Jan 2025 17:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=8D=E9=AA=8C=E8=AF=81ssl=E8=AF=81=E4=B9=A62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/webService/FeeService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/service/webService/FeeService.php b/app/service/webService/FeeService.php index 532e004..91c5027 100644 --- a/app/service/webService/FeeService.php +++ b/app/service/webService/FeeService.php @@ -188,6 +188,7 @@ XML; // 设置POST字段 curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); // 设置HTTP头 + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //todo::增加改行 // 执行cURL会话 $response = curl_exec($ch); @@ -269,4 +270,4 @@ XML; throw new FuncException("数据获取失败 -{$level}"); } } -} \ No newline at end of file +}