Skip to content

Commit

Permalink
fix 默认配置为空的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqizjl committed Aug 1, 2018
1 parent c399f97 commit d1b1faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behavior/AppInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function run()
}
$configs = config('wechat.' . $name);
foreach ($configs as $config_name => $module_default) {
bind('wechat.' . $name . '.' . $config_name, function ($config) use ($app, $module_default, $wechat_default) {
bind('wechat.' . $name . '.' . $config_name, function ($config = [] ) use ($app, $module_default, $wechat_default) {
//合并配置文件
$account_config = array_merge($module_default, $wechat_default, $config);
$account_app = app($app, ['config' => $account_config]);
Expand Down

0 comments on commit d1b1faf

Please sign in to comment.