LocalSmsProvider
class LocalSmsProvider 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
bool
send(string $type, string|array $mobile, array $params = [], string $sign = '')
No description
Details
in
AppTrait at line 45
bool
setError(string|MessageBag $error)
设置错误
in
BaseSms at line 33
void
setScope(string $scope)
No description
in
BaseSms at line 45
bool
checkSms(string|array $mobile, string $type, string $sign)
检查短信是否为空
at line 19
bool
send(string $type, string|array $mobile, array $params = [], string $sign = '')
No description