SmsService Class

手机短信服务抽象基类。

Definition

Namespace: QuickAdmin.Service.Auth
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.1.6
C#
[NotUseDI]
public abstract class SmsService : ISmsService
Inheritance
object    SmsService
Implements
ISmsService

Remarks

继承类只需实现 SendCode(int, string, string) 方法即可。

Constructors

SmsServiceInitializes a new instance of the SmsService class

Properties

Public Properties

LastMobile 获取有效期内最后发送的手机号码。

Protected Properties

CodeTimeoutMinutes 验证码有效期,单位:分钟。
exService 异常日志服务。

Methods

Public Methods

Clear 清除验证码。
Send 发送验证码短信。
Verify 验证验证码。

Protected Methods

BeforeSend 发送前执行的操作。
CheckMobile 检查手机号码。
GenCode 生成验证码。
SaveSmsLog 保存发送日志。
SendCode 执行发送操作。

See Also