SmsService Class

手机短信服务抽象基类。

Definition

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

Remarks

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

Constructors

SmsServiceInitializes a new instance of the SmsService class

Properties

Public Properties

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

Protected Properties

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

Methods

Public Methods

ClearAsync 清除验证码。
SendAsync 发送验证码短信。
VerifyAsync 验证验证码。

Protected Methods

BeforeSendAsync 发送前执行的操作。
CheckMobileAsync 检查手机号码。
GenCode 生成验证码。
SaveSmsLogAsync 保存发送日志。
SendCodeAsync 执行发送操作。

See Also