From 7bea586e6db90f611f2df2e8b68aebcecf509b26 Mon Sep 17 00:00:00 2001 From: overtrue Date: Tue, 14 Nov 2017 11:44:57 +0800 Subject: [PATCH] Resolved #50 --- src/Gateways/HuaxinGateway.php | 2 +- src/Gateways/LuosimaoGateway.php | 2 +- src/Gateways/YunpianGateway.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gateways/HuaxinGateway.php b/src/Gateways/HuaxinGateway.php index 47dd84d..cb019d0 100644 --- a/src/Gateways/HuaxinGateway.php +++ b/src/Gateways/HuaxinGateway.php @@ -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'), diff --git a/src/Gateways/LuosimaoGateway.php b/src/Gateways/LuosimaoGateway.php index a60a12c..32585cb 100644 --- a/src/Gateways/LuosimaoGateway.php +++ b/src/Gateways/LuosimaoGateway.php @@ -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')), ]); diff --git a/src/Gateways/YunpianGateway.php b/src/Gateways/YunpianGateway.php index 159226e..3a4dff2 100644 --- a/src/Gateways/YunpianGateway.php +++ b/src/Gateways/YunpianGateway.php @@ -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']) { -- GitLab