weixinConfig = [ 'app_id' => $data['app_id'], 'secret' => $data['app_secret'], 'token' => $data['token'], // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 'response_type' => 'array', //日志 配置 'log' => [ 'default' => 'dev', // 默认使用的 channel,生产环境可以改为下面的 prod 'channels' => [ // 测试环境 'dev' => [ 'driver' => 'daily', 'path' => root_path() . 'runtime/easywechat/easywechat.log' ] ], ], //OAuth 配置 'oauth' => [ 'scopes' => ['snsapi_userinfo'], // 'callback' => '/examples/oauth_callback.php', ], ]; } /** * 获取EasyWeChat配置--微信公众号配置文件 * @date 2022-02-09 */ public function getWeixinConfig(){ return $this->weixinConfig; } }