Browse Source

用户信息接口不验证ssl证书2

master
wanghongjun 11 months ago
parent
commit
a1c12d6b2f
  1. 3
      app/service/webService/FeeService.php

3
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}");
}
}
}
}

Loading…
Cancel
Save