Closed jesse7866 closed 2 years ago
https://github.com/overtrue/easy-sms/blob/58e405f030574547d00710fc9538d8e0867620e2/src/PhoneNumber.php#L37-L51
https://github.com/overtrue/easy-sms/blob/58e405f030574547d00710fc9538d8e0867620e2/src/Gateways/QcloudGateway.php#L60
如果传手机区号了,那么 getIDDCode 只会获取区号,就没有手机号码了,发送短信会提示参数有误
getIDDCode
使用版本 V2.0.1
举例子看一下?
例子:
$phone = new PhoneNumber(13212345678, 86); app('easysms')->send($phone, new RegisterMessage($code));
因为我的业务有国际短信要发送,所以必须得使用区号
多谢帮忙处理 👍
@jesse7866 客气了。
https://github.com/overtrue/easy-sms/blob/58e405f030574547d00710fc9538d8e0867620e2/src/PhoneNumber.php#L37-L51
https://github.com/overtrue/easy-sms/blob/58e405f030574547d00710fc9538d8e0867620e2/src/Gateways/QcloudGateway.php#L60
如果传手机区号了,那么
getIDDCode
只会获取区号,就没有手机号码了,发送短信会提示参数有误使用版本 V2.0.1