protected function setupConfig()
{
$source = realpath(__DIR__ . '/config.php');
if ($this->app instanceof LaravelApplication) {
if ($this->app->runningInConsole()) {
$this->publishes([$source => config_path('wechat.php')]);
}
// 创建模拟授权
$this->setUpMockAuthUser();
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('wechat');
}
$this->mergeConfigFrom($source, 'wechat');
}