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

Resolved #50

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