elf 2 months ago
parent 9e30c325c5
commit d5f32141cd

@ -27,6 +27,10 @@
* postXmlCurl(),以post方式提交xml到对应的接口url
* postXmlSSLCurl(),使用证书以post方式提交xml到对应的接口url
*/
use Base\Tool\Log;
use Think\Log as ThinkLog;
include_once("SDKRuntimeException.php");
include_once("WxPay.pub.config.php");
@ -186,6 +190,7 @@ class Common_util_pub
//要求结果为字符串且输出到屏幕上
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
Log::write("mchid:" . $this->mchid, ThinkLog::INFO, 'wxpay');
if ($this->mchid == '1699330320') {
curl_setopt($ch, CURLOPT_REFERER, "https://way.hexidongkeji.top");
}
@ -237,7 +242,7 @@ class Common_util_pub
if ($this->mchid == '1699330320') {
curl_setopt($ch, CURLOPT_REFERER, "https://way.hexidongkeji.top");
}
//设置证书
//使用证书cert 与 key 分别属于两个.pem文件
//默认格式为PEM可以注释

@ -27,6 +27,10 @@
* postXmlCurl(),以post方式提交xml到对应的接口url
* postXmlSSLCurl(),使用证书以post方式提交xml到对应的接口url
*/
use Base\Tool\Log;
use Think\Log as ThinkLog;
include_once("SDKRuntimeException.php");
include_once("WxPay.pub.config.php");
@ -186,6 +190,7 @@ class Common_util_pub
//要求结果为字符串且输出到屏幕上
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
Log::write("mchid:" . $this->mchid, ThinkLog::INFO, 'wxpay');
if ($this->mchid == '1699330320') {
curl_setopt($ch, CURLOPT_REFERER, "https://way.hexidongkeji.top");
}

Loading…
Cancel
Save