提交 7bea586e 编写于 作者: O overtrue

Resolved #50

上级 908181b2
...@@ -45,7 +45,7 @@ class HuaxinGateway extends Gateway ...@@ -45,7 +45,7 @@ class HuaxinGateway extends Gateway
'account' => $config->get('account'), 'account' => $config->get('account'),
'password' => $config->get('password'), 'password' => $config->get('password'),
'mobile' => $to, 'mobile' => $to,
'content' => $message->getContent(), 'content' => $message->getContent($this),
'sendTime' => '', 'sendTime' => '',
'action' => 'send', 'action' => 'send',
'extno' => $config->get('ext_no'), 'extno' => $config->get('ext_no'),
......
...@@ -44,7 +44,7 @@ class LuosimaoGateway extends Gateway ...@@ -44,7 +44,7 @@ class LuosimaoGateway extends Gateway
$result = $this->post($endpoint, [ $result = $this->post($endpoint, [
'mobile' => $to, 'mobile' => $to,
'message' => $message->getContent(), 'message' => $message->getContent($this),
], [ ], [
'Authorization' => 'Basic '.base64_encode('api:key-'.$config->get('api_key')), 'Authorization' => 'Basic '.base64_encode('api:key-'.$config->get('api_key')),
]); ]);
......
...@@ -45,7 +45,7 @@ class YunpianGateway extends Gateway ...@@ -45,7 +45,7 @@ class YunpianGateway extends Gateway
$result = $this->post($endpoint, [ $result = $this->post($endpoint, [
'apikey' => $config->get('api_key'), 'apikey' => $config->get('api_key'),
'mobile' => $to, 'mobile' => $to,
'text' => $message->getContent(), 'text' => $message->getContent($this),
]); ]);
if ($result['code']) { if ($result['code']) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册