|
|
|
@ -186,6 +186,10 @@ class Common_util_pub
|
|
|
|
|
//要求结果为字符串且输出到屏幕上
|
|
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
|
|
|
|
|
|
|
|
|
|
if ($this->mchid == '1699330320') {
|
|
|
|
|
curl_setopt($ch, CURLOPT_REFERER, "https://way.hexidongkeji.top");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($useCert == true){
|
|
|
|
|
if($tt==3){
|
|
|
|
|
//设置证书
|
|
|
|
@ -248,6 +252,12 @@ class Common_util_pub
|
|
|
|
|
//默认格式为PEM,可以注释
|
|
|
|
|
curl_setopt($ch,CURLOPT_SSLKEYTYPE,'PEM');
|
|
|
|
|
curl_setopt($ch,CURLOPT_SSLKEY, WxPayConf_pub::SSLKEY_PATH);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->mchid == '1699330320') {
|
|
|
|
|
curl_setopt($ch, CURLOPT_REFERER, "https://way.hexidongkeji.top");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//post提交方式
|
|
|
|
|
curl_setopt($ch,CURLOPT_POST, true);
|
|
|
|
|
curl_setopt($ch,CURLOPT_POSTFIELDS,$xml);
|
|
|
|
|