class ChuanglanSmsProvider extends BaseSms implements SmsContract

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected array $sms from  BaseSms
protected string $sign 短信签名 from  BaseSms
protected string $scope from  BaseSms

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
void
setScope(string $scope)

No description

from  BaseSms
bool
checkSms(string|array $mobile, string $type, string $sign)

检查短信是否为空

from  BaseSms
bool
send(string $type, string|array $mobile, array $params = [], string $sign = '')

No description

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

in BaseSms at line 33
void setScope(string $scope)

No description

Parameters

string $scope

Return Value

void

in BaseSms at line 45
bool checkSms(string|array $mobile, string $type, string $sign)

检查短信是否为空

Parameters

string|array $mobile 手机号
string $type 类型
string $sign 签名

Return Value

bool

at line 22
bool send(string $type, string|array $mobile, array $params = [], string $sign = '')

No description

Parameters

string $type 发送类型
string|array $mobile

接收手机号, 支持数组

array $params 参数
string $sign

签名, 不填写使用默认签名

Return Value

bool