SmsTrait
trait SmsTrait (View source)
短信功能
Methods
array
smsSendcode(string $mobile, int $templateid, int $authCode = null, int $codeLen = 4, string $deviceId = null, bool $needUp = false)
发送短信/语音短信验证码
array|bool
smsVerifycode(string $mobile, string $code)
校验指定手机号的验证码是否合法。
array
smsSendtemplate(int $templateid, array $mobiles, array $params = [], bool $needUp = false)
发送模板短信
array
smsQuerystatus(int $sendid)
查询通知类和运营类短信发送状态 根据短信的sendid(sendtemplate.action接口中的返回值),查询短信发送结果。
Details
at line 34
array
smsSendcode(string $mobile, int $templateid, int $authCode = null, int $codeLen = 4, string $deviceId = null, bool $needUp = false)
发送短信/语音短信验证码
at line 58
array|bool
smsVerifycode(string $mobile, string $code)
校验指定手机号的验证码是否合法。
at line 79
array
smsSendtemplate(int $templateid, array $mobiles, array $params = [], bool $needUp = false)
发送模板短信
at line 101
array
smsQuerystatus(int $sendid)
查询通知类和运营类短信发送状态 根据短信的sendid(sendtemplate.action接口中的返回值),查询短信发送结果。