Skip to content

Commit

Permalink
优化短信宝手机区号判断 (overtrue#303)
Browse files Browse the repository at this point in the history
* 新增摩杜云支持

* 添加测试用例

* 删除文件(修改大小写文件git不识别)

* 处理大小写导致网关查找失败

* 新增融合云(助通)支持

* 新增蜘蛛云支持

* 优化摩杜云和融合云请求方式

* 修改传参数错误

实际调用的是getContent(),而不是getTemplate()

* 优化短信宝手机区号判断

Co-authored-by: 安正超 <[email protected]>
  • Loading branch information
Fenguoz and overtrue authored May 20, 2021
1 parent 0d8fd07 commit 2d1f867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/SmsbaoGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config
{
$data = $message->getContent($this);

if (is_null($to->getIDDCode())) {
if (is_null($to->getIDDCode()) || $to->getIDDCode() == '86') {
$number = $to->getNumber();
$action = 'sms';
} else {
Expand Down

0 comments on commit 2d1f867

Please sign in to comment.