|
|
|
@ -435,6 +435,12 @@ class ChinaTaxes |
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $json); |
|
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); // 设置HTTP头 |
|
|
|
|
|
|
|
// 跳过证书验证(不推荐在生产环境使用) |
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
|
|
|
|
|
|
|
// 跳过主机名验证 |
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); |
|
|
|
|
|
|
|
// 执行cURL会话 |
|
|
|
$response = curl_exec($ch); |
|
|
|
|
|
|
|
|