liugc 9 月之前
父節點
當前提交
efff9b226e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/common/service/wechat/WeChatConfigService.php

+ 2 - 0
app/common/service/wechat/WeChatConfigService.php

@@ -17,6 +17,7 @@ use app\common\enum\PayEnum;
 use app\common\enum\user\UserTerminalEnum;
 use app\common\enum\user\UserTerminalEnum;
 use app\common\model\pay\PayConfig;
 use app\common\model\pay\PayConfig;
 use app\common\service\ConfigService;
 use app\common\service\ConfigService;
+use think\facade\Log;
 
 
 /**
 /**
  * 微信配置类
  * 微信配置类
@@ -129,6 +130,7 @@ class WeChatConfigService
         if (!empty($apiclientKey) && !file_exists($keyPath)) {
         if (!empty($apiclientKey) && !file_exists($keyPath)) {
             static::setCert($keyPath, trim($apiclientKey));
             static::setCert($keyPath, trim($apiclientKey));
         }
         }
+        Log::info('微信支付配置:'.$notifyUrl.':'.formatLogData($pay));
         return [
         return [
             // 商户号
             // 商户号
             'mch_id' => $pay['config']['mch_id'] ?? '',
             'mch_id' => $pay['config']['mch_id'] ?? '',