diff --git a/src/Gateways/HuaxinGateway.php b/src/Gateways/HuaxinGateway.php index 47dd84d14ca4f034e5d5e471f30b5082600c4223..cb019d05c3911c7c0d266b4c13ef8cc7ea5c850e 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 a60a12cdf14d403476e615f56b21561bb2b48f5c..32585cb5c9971eff8cef806e499c85108f67637e 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 159226ed733032a9895ee4c4c444195614d6b8ab..3a4dff21093fc3a67b65e15294823fc29f92a1fe 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']) {