From d5f32141cd703fc051febad7886c1e10e25bede1 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 12 Dec 2024 00:28:46 +0800 Subject: [PATCH] yh --- .../Library/Vendor/WxPayPubHelper/22WxPayPubHelper.php | 7 ++++++- ThinkPHP/Library/Vendor/WxPayPubHelper/WxPayPubHelper.php | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ThinkPHP/Library/Vendor/WxPayPubHelper/22WxPayPubHelper.php b/ThinkPHP/Library/Vendor/WxPayPubHelper/22WxPayPubHelper.php index 3cd537d..90383f1 100644 --- a/ThinkPHP/Library/Vendor/WxPayPubHelper/22WxPayPubHelper.php +++ b/ThinkPHP/Library/Vendor/WxPayPubHelper/22WxPayPubHelper.php @@ -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,可以注释 diff --git a/ThinkPHP/Library/Vendor/WxPayPubHelper/WxPayPubHelper.php b/ThinkPHP/Library/Vendor/WxPayPubHelper/WxPayPubHelper.php index 641c30d..7fb2955 100644 --- a/ThinkPHP/Library/Vendor/WxPayPubHelper/WxPayPubHelper.php +++ b/ThinkPHP/Library/Vendor/WxPayPubHelper/WxPayPubHelper.php @@ -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"); }