Sms
class Sms
短信模板
Traits
AppTrait
Db Trait Db 工具
Constants
SCOPE_LOCAL |
|
SCOPE_ALIYUN |
|
SCOPE_CHUANGLAN |
|
SCOPE_LIANLU |
|
Properties
protected Resp | $error | error | from AppTrait |
protected Resp | $success | success | from AppTrait |
Methods
__construct()
No description
static array|string
kvType(string $key = null, bool $check_key = false)
短信类型
static array|bool|string
kvPlatform(string $key = null, bool $check_key = false)
平台类型
static array
smsTpl(string $type, string $scope)
获取指定平台对应类型的模板
static string
rateSmsType()
获取现在配置分流的短信
Collection
getTemplates()
获取所有的模版
array
getItem()
No description
bool
establish(string $id, string $code)
新增和编辑
bool
init(string $id)
初始化
bool
destroy(string $id)
刪除
Details
in
AppTrait at line 45
bool
setError(string|MessageBag $error)
设置错误
in
SystemTrait at line 20
protected SettingRepository
sysSetting()
检查当前是否是在事务中
at line 42
__construct()
No description
at line 53
static array|string
kvType(string $key = null, bool $check_key = false)
短信类型
at line 65
static array|bool|string
kvPlatform(string $key = null, bool $check_key = false)
平台类型
at line 80
static array
smsTpl(string $type, string $scope)
获取指定平台对应类型的模板
at line 94
static string
rateSmsType()
获取现在配置分流的短信
at line 111
Collection
getTemplates()
获取所有的模版
at line 119
array
getItem()
No description
at line 132
bool
establish(string $id, string $code)
新增和编辑
at line 149
bool
init(string $id)
初始化
at line 170
bool
destroy(string $id)
刪除