toplan / phpsms

:iphone::rocket:Probably the most intelligent, elegant sms send library in php
MIT License
641 stars 129 forks source link

腾讯云短信接口方法名重复导致发送失败 #145

Open Guogb opened 6 years ago

Guogb commented 6 years ago

Agent.phpQcloudAgent.php 文件中里都是存在 formatMobile() ,冲突导致无法获得手机号,短信发送失败。

dm521 commented 5 years ago

@Guogb 需要将这个formatMobile()注释掉。然后在发送的方法中,讲'tel' =>'to',更改为'tel' => ['nationcode' => '86', 'mobile' => $to],