public interface ChuangLanSmsService
该类为 chuanglansms 第三方操作核心接口, 项目中所有 chuanglansms 的操作均使用此接口
该类已默认注入到 spring 中, 默认实现为 DefaultChuangLanSmsServiceImpl, 如需自定义实现请实现该接口并手动注入该接口
| 限定符和类型 | 方法和说明 |
|---|---|
SendResponse |
send(String phoneNumbers)
发送短信验证码
|
SendResponse |
send(String message,
String phoneNumbers)
发送短信验证码
|
SendResponse |
send(String signName,
String message,
String phoneNumbers)
发送短信验证码
|
SendResponse send(@NonNull String signName, @NonNull String message, @NonNull String phoneNumbers) throws ChuangLanSmsSendException
signName - 短信签名message - 最终发送的消息, 长度不超过 [536] 个字符phoneNumbers - 接收的手机号; 多个手机号使用英文逗号间隔, 一次不要超过 [1000] 个ChuangLanSmsSendException - 创蓝短信发送异常SendResponse send(@NonNull String message, @NonNull String phoneNumbers) throws ChuangLanSmsSendException
message - 最终发送的消息, 长度不超过 [536] 个字符phoneNumbers - 接收的手机号; 多个手机号使用英文逗号间隔, 一次不要超过 [1000] 个ChuangLanSmsSendException - 创蓝短信发送异常SendResponse send(@NonNull String phoneNumbers) throws ChuangLanSmsSendException
phoneNumbers - 接收的手机号; 多个手机号使用英文逗号间隔, 一次不要超过 [1000] 个ChuangLanSmsSendException - 创蓝短信发送异常Copyright © 2021 HaiChuang Inc.. All rights reserved.