Skip to content

Commit

Permalink
Bugfix. #101
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jun 7, 2018
1 parent bbff40d commit 9c1d04a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gateways/HuaxinGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config
'userid' => $config->get('user_id'),
'account' => $config->get('account'),
'password' => $config->get('password'),
'mobile' => $to,
'mobile' => $to->getNumber(),
'content' => $message->getContent($this),
'sendTime' => '',
'action' => 'send',
Expand Down
2 changes: 1 addition & 1 deletion tests/Gateways/HuaxinGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testSend()
'userid' => 'mock-user-id',
'password' => 'mock-password',
'account' => 'mock-account',
'mobile' => new PhoneNumber(18188888888),
'mobile' => 18188888888,
'content' => 'This is a test message.',
'sendTime' => '',
'action' => 'send',
Expand Down

0 comments on commit 9c1d04a

Please sign in to comment.