\App\LibrarySms

自己定义的短信验证码类

Summary

Methods
Properties
Constants
__construct()
send()
is_mobile()
No public properties found
CAPTCHA
No protected methods found
$debug
N/A
No private methods found
No private properties found
N/A

Constants

CAPTCHA

CAPTCHA = '8888'

Properties

$debug

$debug : boolean

调试模式

Type

boolean

Methods

__construct()

__construct() 

send()

send(\App\Library\[type]  $mobile, string  $captcha = '') : \App\Library\[type]

发送收短信验证码

Parameters

\App\Library\[type] $mobile

[description]

string $captcha

[description]

Returns

\App\Library\[type] —

[description]

is_mobile()

is_mobile(\App\Library\[type]  $mobile) : boolean

是否正确手机号码格式

Parameters

\App\Library\[type] $mobile

[description]

Returns

boolean —

[description]