Skip to content

Commit

Permalink
Fixed all gateway not transmit gateway to message (#96)
Browse files Browse the repository at this point in the history
* chore: Fixed not transmit gateway

* chore: Fixed all not transmit gateway to message
  • Loading branch information
medz authored and overtrue committed May 17, 2018
1 parent d814ac0 commit 9d889d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Gateways/ChuanglanGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function send($to, MessageInterface $message, Config $config)
'un' => $config->get('username'),
'pw' => $config->get('password'),
'phone' => $to,
'msg' => $message->getContent(),
'msg' => $message->getContent($this),
];

$result = $this->get(self::ENDPOINT_URL, $params);
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/ErrorlogGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function send($to, MessageInterface $message, Config $config)
"[%s] to: %s | message: \"%s\" | template: \"%s\" | data: %s\n",
date('Y-m-d H:i:s'),
$to,
$message->getContent(),
$message->getContent($this),
$message->getTemplate($this),
json_encode($message->getData($this))
);
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/TianyiwuxianGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function send($to, MessageInterface $message, Config $config)
'type' => self::ENDPOINT_TYPE,
'rece' => self::ENDPOINT_FORMAT,
'mobile' => $to,
'message' => $message->getContent(),
'message' => $message->getContent($this),
'username' => $config->get('username'),
'password' => strtoupper(md5($config->get('password'))),
];
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/TwilioGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function send($to, MessageInterface $message, Config $config)
$params = [
'To' => $to,
'From' => $config->get('from'),
'Body' => $message->getContent(),
'Body' => $message->getContent($this),
];

try {
Expand Down

0 comments on commit 9d889d4

Please sign in to comment.