public class LianLuMsgSender extends AbstractMsgSender
AbstractMsgSender.MsgSenderInitException| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_ENDPOINT |
log| 构造器和说明 |
|---|
LianLuMsgSender() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAppId() |
String |
getAppKey() |
String |
getEndpoint() |
String |
getMchId() |
String |
getVersion() |
void |
init(Map<String,String> params)
初始化 发送器
|
SendResult |
send(String phone,
MsgTemplate template,
String... tmplArgs) |
void |
setAppId(String appId) |
void |
setAppKey(String appKey) |
void |
setEndpoint(String endpoint) |
void |
setMchId(String mchId) |
void |
setVersion(String version) |
addMsgTemplate, getMsgTemplate, getTemplates, send, setTemplatespublic static String DEFAULT_ENDPOINT
public void init(Map<String,String> params)
AbstractMsgSenderinit 在类中 AbstractMsgSenderparams - 参数public SendResult send(String phone, MsgTemplate template, String... tmplArgs)
send 在类中 AbstractMsgSenderpublic String getEndpoint()
public void setEndpoint(String endpoint)
public String getMchId()
public void setMchId(String mchId)
public void setAppId(String appId)
public String getAppId()
public String getAppKey()
public void setAppKey(String appKey)
public String getVersion()
public void setVersion(String version)
Copyright © 2024. All rights reserved.