publish 0.9.5
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.tiesheng.springboot-parent</groupId>
|
||||
<artifactId>springboot-parent</artifactId>
|
||||
<version>0.9.4</version>
|
||||
<version>0.9.5</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>springboot-message</artifactId>
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.tiesheng.message.config.aliyun;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.crypto.SecureUtil;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import cn.hutool.json.JSONObject;
|
||||
@@ -21,7 +22,7 @@ import java.util.*;
|
||||
*/
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "tiesheng.aliyun")
|
||||
public class AliyunSmsConfig implements TieshengMessageSender {
|
||||
public class AliyunSmsSender implements TieshengMessageSender {
|
||||
|
||||
/**
|
||||
* 请求地址
|
||||
@@ -124,6 +125,11 @@ public class AliyunSmsConfig implements TieshengMessageSender {
|
||||
return "sms";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean support() {
|
||||
return StrUtil.isAllNotEmpty(accessKeyId, accessKeySecret, signName);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// setter\getter
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
@@ -29,4 +29,11 @@ public interface TieshengMessageSender {
|
||||
*/
|
||||
String getChannel();
|
||||
|
||||
/**
|
||||
* 是否支持
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean support();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user