Skip to content

Commit

Permalink
Merge pull request #10 from leo108/master
Browse files Browse the repository at this point in the history
fix: 当自定义 gateway 没有传入参数时无法使用问题
  • Loading branch information
overtrue authored May 19, 2017
2 parents 607333f + 5d2ef01 commit 558714c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Messenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ protected function formatGateways(array $gateways)
$setting = [];
}

$formatted[$gateway] = $setting;
$globalSetting = $config->get("gateways.{$gateway}", []);

if (is_string($gateway) && !empty($globalSetting) && is_array($setting)) {
Expand Down

0 comments on commit 558714c

Please sign in to comment.