wesmiler 6 år sedan
förälder
incheckning
e717ac2cb3
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 1 0
      data/config/weixin.php
  2. 2 1
      vendor/thinkcmf/cmf/src/common.php

+ 1 - 0
data/config/weixin.php

@@ -4,6 +4,7 @@
  */
 return [
     'debug'=> false, // 是否测试模式
+    'log'=> true, // 是否记录日志
     'payDebug'=> false, // 微信支付测试,开启后支付金额为0.01元
     'payResult'=> false, // 是否记录支付结果
 //    'openid'=> '', // 测试模式测试用户OPENID

+ 2 - 1
vendor/thinkcmf/cmf/src/common.php

@@ -2584,7 +2584,8 @@ function makeTradeNo($prefix = '', $ext = '')
  */
 function saveLogCache($key, $val)
 {
-    $debug = config('weixin.debug');
+//    $debug = config('weixin.debug');
+    $debug = config('weixin.log');
     if (!$debug) {
         return false;
     }