wechatConfig = $weixin_param; $this->easyWechatWeixinConfig = [ 'app_id' => $weixin_param['app_id'], 'secret' => $weixin_param['app_secret'], 'token' => $weixin_param['token'], 'response_type' => 'array', //日志 配置 'log' => [ 'default' => 'dev', // 默认使用的 channel,生产环境可以改为下面的 prod 'channels' => [ // 测试环境 'dev' => [ 'driver' => 'daily', 'path' => root_path() . 'runtime/easywechat/easywechat.log', 'level' => 'debug', 'days' => 1 ] ], ], //OAuth 配置 'oauth' => [ 'scopes' => ['snsapi_userinfo'], // 'callback' => '/examples/oauth_callback.php', ], ]; } }