Class ZhutongSmsProvider
java.lang.Object
org.miaixz.bus.notify.metric.AbstractProvider<ZhutongMaterial,Context>
org.miaixz.bus.notify.metric.zhutong.ZhutongSmsProvider
- All Implemented Interfaces:
Provider<ZhutongMaterial>
助通短信发送
1. 自定义短信发送 无需定义模板 https://doc.zthysms.com/web/#/1/14
2. 模板短信发送 需定义模板 https://doc.zthysms.com/web/#/1/13
appKey :username 助通终端用户管理的用户名,非登录账号密码
appSecret :password 终端用户管理的密码
signature :短信签名可以为空,为空发送【自定义短信】无需要提前创建短信模板; 不为空发送:【模板短信】
templateId :模板id可以为空,为空发送【自定义短信】无需要提前创建短信模板; 不为空发送:【模板短信】
templateName :模板变量名称可以为空,为空发送【自定义短信】无需要提前创建短信模板; 不为空发送:【模板短信】
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class org.miaixz.bus.notify.metric.AbstractProvider
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.miaixz.bus.core.basics.entity.Messagesend(ZhutongMaterial entity) 指定模版Material并发送 注意:不同等服务商使用的模版实现不同protected org.miaixz.bus.core.basics.entity.MessagesendForCustom(ZhutongMaterial entity) 发送 自定义短信:https://doc.zthysms.com/web/#/1/14protected org.miaixz.bus.core.basics.entity.MessagesendForTemplate(ZhutongMaterial entity) 发送 模板短信:https://doc.zthysms.com/web/#/1/13Methods inherited from class org.miaixz.bus.notify.metric.AbstractProvider
getUrl, getUrl, send
-
Constructor Details
-
ZhutongSmsProvider
构造器,用于构造短信实现模块
-
-
Method Details
-
send
Description copied from interface:Provider指定模版Material并发送 注意:不同等服务商使用的模版实现不同- Specified by:
sendin interfaceProvider<ZhutongMaterial>- Overrides:
sendin classAbstractProvider<ZhutongMaterial,Context> - Parameters:
entity- 通知内容- Returns:
- 发送结果
-
sendForCustom
发送 自定义短信:https://doc.zthysms.com/web/#/1/14 -
sendForTemplate
发送 模板短信:https://doc.zthysms.com/web/#/1/13
-