Skip to content

Commit

Permalink
Resolved #50
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Nov 14, 2017
1 parent 908181b commit 7bea586
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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($to, MessageInterface $message, Config $config)
'account' => $config->get('account'),
'password' => $config->get('password'),
'mobile' => $to,
'content' => $message->getContent(),
'content' => $message->getContent($this),
'sendTime' => '',
'action' => 'send',
'extno' => $config->get('ext_no'),
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/LuosimaoGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function send($to, MessageInterface $message, Config $config)

$result = $this->post($endpoint, [
'mobile' => $to,
'message' => $message->getContent(),
'message' => $message->getContent($this),
], [
'Authorization' => 'Basic '.base64_encode('api:key-'.$config->get('api_key')),
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/YunpianGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function send($to, MessageInterface $message, Config $config)
$result = $this->post($endpoint, [
'apikey' => $config->get('api_key'),
'mobile' => $to,
'text' => $message->getContent(),
'text' => $message->getContent($this),
]);

if ($result['code']) {
Expand Down

0 comments on commit 7bea586

Please sign in to comment.