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