Skip to content

Commit

Permalink
修改new Config错误导致的All the gateways have failed错误 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
mumianzi authored and overtrue committed Sep 12, 2018
1 parent 49d9962 commit 90c2d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Messenger.php
Expand Up @@ -61,7 +61,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, array
$results[$gateway] = [
'gateway' => $gateway,
'status' => self::STATUS_SUCCESS,
'result' => $this->easySms->gateway($gateway)->send($to, $message, new Config($gateways[$gateway])),
'result' => $this->easySms->gateway($gateway)->send($to, $message,new Config($this->easySms->getConfig()->get("gateways.{$gateway}"))),
];
$isSuccessful = true;

Expand Down

0 comments on commit 90c2d9c

Please sign in to comment.