C# Class CRL.Person.UserMobileVerify

对用户进行手机验证 验证信息存留在服务端
Afficher le fichier Open project: hubro-xx/CRL2

Méthodes publiques

Свойство Type Description
CurrentCode string

Méthodes publiques

Méthode Description
CheckCode ( string mobile, string code, string &error ) : bool

检验验证码,成功会清除缓存数据

SendCode ( string mobile, string content, string &error ) : bool

发送自定义格式短信

Méthodes protégées

Méthode Description
SendSms ( string mobile, string content, string &error ) : bool

发送短信方法,请重写

Private Methods

Méthode Description
MakeRandomCode ( ) : string

生成随机码

Method Details

CheckCode() public méthode

检验验证码,成功会清除缓存数据
public CheckCode ( string mobile, string code, string &error ) : bool
mobile string
code string
error string
Résultat bool

SendCode() public méthode

发送自定义格式短信
public SendCode ( string mobile, string content, string &error ) : bool
mobile string
content string 不为空时为自定义短信,验证码域请用{0}表示
error string
Résultat bool

SendSms() protected méthode

发送短信方法,请重写
protected SendSms ( string mobile, string content, string &error ) : bool
mobile string
content string
error string
Résultat bool

Property Details

CurrentCode public_oe property

当前随机码
public string CurrentCode
Résultat string