get() get(int $mobile, string $event = 'default') : \app\common\library\Sms 获取最后一次手机发送的数据 Parameters int $mobile 手机号 string $event 事件 Returns \app\common\library\Sms —
send() send(int $mobile, int $code = null, string $event = 'default') : bool 发送验证码 Parameters int $mobile 手机号 int $code 验证码,为空时将自动生成4位数字 string $event 事件 Returns bool —
notice() notice(mixed $mobile, string $msg = '', string $template = null) : bool 发送通知 Parameters mixed $mobile 手机号,多个以,分隔 string $msg 消息内容 string $template 消息模板 Returns bool —
check() check(int $mobile, int $code, string $event = 'default') : bool 校验验证码 Parameters int $mobile 手机号 int $code 验证码 string $event 事件 Returns bool —
flush() flush(int $mobile, string $event = 'default') : bool 清空指定手机号验证码 Parameters int $mobile 手机号 string $event 事件 Returns bool —