类 DanMiUtils
java.lang.Object
org.dromara.sms4j.danmi.utils.DanMiUtils
类名: DanMiUtils
- 作者:
- :bleachtred 2024/6/23 17:06
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static LinkedHashMap<String,Object> 生成请求body参数static LinkedHashMap<String,String> private static String签名:MD5(ACCOUNT SID + AUTH TOKEN + timestamp)。
-
构造器详细资料
-
DanMiUtils
public DanMiUtils()
-
-
方法详细资料
-
buildHeaders
-
buildBody
public static LinkedHashMap<String,Object> buildBody(DanMiConfig config, List<String> phones, String message, String templateId) 生成请求body参数- 参数:
config- 配置数据phones- 手机号message- 短信内容 (or 验证码内容(1-8位数字) or 语音文件ID or 模板参数)templateId- 模板id
-
sign
签名:MD5(ACCOUNT SID + AUTH TOKEN + timestamp)。共32位(小写)- 参数:
accessKeyId- ACCOUNT SIDaccessKeySecret- AUTH TOKENtimestamp- timestamp- 返回:
- 签名:MD5 共32位(小写)
-