mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 08:58:38 +08:00
!10 调整项目结构信息
Merge pull request !10 from Charles7c/dev-test 贡献者:Charles7c
This commit is contained in:
commit
b1388958f6
@ -2,7 +2,7 @@
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<packaging>pom</packaging>
|
||||
@ -24,18 +24,19 @@
|
||||
</developer>
|
||||
</developers>
|
||||
<modules>
|
||||
<module>sms-aggregation-comm</module>
|
||||
<module>sms-aggregation-api</module>
|
||||
<module>sms-aggregation-core</module>
|
||||
<module>sms-aggregation-autoimmit</module>
|
||||
<module>sms-aggregation-spring-boot-starter</module>
|
||||
<module>sms-aggregation-aliyun</module>
|
||||
<module>sms-aggregation-tencent</module>
|
||||
<module>sms-aggregation-unisms</module>
|
||||
<module>sms-aggregation-yunpian</module>
|
||||
<module>sms-aggregation-huawei</module>
|
||||
<module>sms-aggregation-jdcloud</module>
|
||||
<module>sms-aggregation-cloopen</module>
|
||||
<module>sms4j-comm</module>
|
||||
<module>sms4j-api</module>
|
||||
<module>sms4j-core</module>
|
||||
<module>sms4j-autoimmit</module>
|
||||
<module>sms4j-spring-boot-starter</module>
|
||||
<module>sms4j-aliyun</module>
|
||||
<module>sms4j-tencent</module>
|
||||
<module>sms4j-unisms</module>
|
||||
<module>sms4j-yunpian</module>
|
||||
<module>sms4j-huawei</module>
|
||||
<module>sms4j-jdcloud</module>
|
||||
<module>sms4j-cloopen</module>
|
||||
<module>sms4j-emay</module>
|
||||
</modules>
|
||||
<scm>
|
||||
<connection>scm:git:https://gitee.com/MR-wind/sms_aggregation.git</connection>
|
||||
@ -81,63 +82,68 @@
|
||||
<version>${spring.boot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-spring-boot-starter</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-spring-boot-starter</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-autoimmit</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-autoimmit</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-core</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-core</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-aliyun</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-aliyun</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-tencent</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-tencent</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-unisms</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-unisms</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-yunpian</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-yunpian</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-huawei</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-huawei</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-jdcloud</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-jdcloud</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-cloopen</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-cloopen</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-emay</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -146,8 +152,8 @@
|
||||
<version>${aliyun.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
@ -178,8 +184,8 @@
|
||||
<version>${unisms.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
@ -189,8 +195,8 @@
|
||||
<version>${tencent.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
@ -37,8 +37,8 @@
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-spring-boot-starter</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-spring-boot-starter</artifactId>
|
||||
<version> version </version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
81
pom.xml
81
pom.xml
@ -2,28 +2,29 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
|
||||
<name>sms-aggregation</name>
|
||||
<packaging>pom</packaging>
|
||||
<description>sms_aggregation</description>
|
||||
<url>https://gitee.com/dromara/sms_aggregation</url>
|
||||
|
||||
<modules>
|
||||
<module>sms-aggregation-comm</module>
|
||||
<module>sms-aggregation-api</module>
|
||||
<module>sms-aggregation-core</module>
|
||||
<module>sms-aggregation-autoimmit</module>
|
||||
<module>sms-aggregation-spring-boot-starter</module>
|
||||
<module>sms-aggregation-aliyun</module>
|
||||
<module>sms-aggregation-tencent</module>
|
||||
<module>sms-aggregation-unisms</module>
|
||||
<module>sms-aggregation-yunpian</module>
|
||||
<module>sms-aggregation-huawei</module>
|
||||
<module>sms-aggregation-jdcloud</module>
|
||||
<module>sms-aggregation-cloopen</module>
|
||||
<module>sms-aggregation-emay</module>
|
||||
<module>sms4j-comm</module>
|
||||
<module>sms4j-api</module>
|
||||
<module>sms4j-core</module>
|
||||
<module>sms4j-autoimmit</module>
|
||||
<module>sms4j-spring-boot-starter</module>
|
||||
<module>sms4j-aliyun</module>
|
||||
<module>sms4j-tencent</module>
|
||||
<module>sms4j-unisms</module>
|
||||
<module>sms4j-yunpian</module>
|
||||
<module>sms4j-huawei</module>
|
||||
<module>sms4j-jdcloud</module>
|
||||
<module>sms4j-cloopen</module>
|
||||
<module>sms4j-emay</module>
|
||||
</modules>
|
||||
<!-- 开源协议 apache 2.0 -->
|
||||
<licenses>
|
||||
@ -85,82 +86,82 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-spring-boot-starter</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-spring-boot-starter</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-autoimmit</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-autoimmit</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-core</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-core</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!--通用模块-->
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!--api模块-->
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-aliyun</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-aliyun</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-tencent</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-tencent</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-unisms</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-unisms</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-yunpian</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-yunpian</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-huawei</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-huawei</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-jdcloud</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-jdcloud</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-cloopen</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-cloopen</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-emay</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-emay</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
org.dromara.sms.starter.config.SmsMainConfig,\
|
||||
org.dromara.sms.autoimmit.config.SmsAutowiredConfig,\
|
||||
org.dromara.sms.autoimmit.config.SupplierConfig
|
||||
@ -1,3 +0,0 @@
|
||||
org.dromara.sms.starter.config.SmsMainConfig
|
||||
org.dromara.sms.autoimmit.config.SmsAutowiredConfig
|
||||
org.dromara.sms.autoimmit.config.SupplierConfig
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-aliyun</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-aliyun</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-aliyun</name>
|
||||
<description>sms-aggregation-aliyun</description>
|
||||
<name>sms4j-aliyun</name>
|
||||
<description>sms4j-aliyun</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -26,8 +26,8 @@
|
||||
<artifactId>dysmsapi20170525</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
@ -36,12 +36,12 @@
|
||||
<artifactId>okhttp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
@ -3,17 +3,18 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-aliyun</artifactId>
|
||||
<name>sms-aggregation-aliyun</name>
|
||||
<description>sms-aggregation-aliyun</description>
|
||||
<version>${revision}</version>
|
||||
<properties>
|
||||
|
||||
<artifactId>sms4j-aliyun</artifactId>
|
||||
<name>sms4j-aliyun</name>
|
||||
<description>sms4j-aliyun</description>
|
||||
<version>${revision}</version>
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@ -35,13 +36,13 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -50,6 +51,4 @@
|
||||
<version>3.14.9</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.aliyun.config;
|
||||
package org.dromara.sms4j.aliyun.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
package org.dromara.sms.aliyun.config;
|
||||
package org.dromara.sms4j.aliyun.config;
|
||||
|
||||
import com.aliyun.dysmsapi20170525.Client;
|
||||
import com.aliyun.teaopenapi.models.Config;
|
||||
import org.dromara.sms.aliyun.service.AlibabaSmsImpl;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.aliyun.service.AlibabaSmsImpl;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.aliyun.service;
|
||||
package org.dromara.sms4j.aliyun.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.aliyun.dysmsapi20170525.Client;
|
||||
@ -8,14 +8,14 @@ import com.aliyun.dysmsapi20170525.models.SendSmsRequest;
|
||||
import com.aliyun.dysmsapi20170525.models.SendSmsResponse;
|
||||
import com.aliyun.tea.TeaException;
|
||||
import com.aliyun.teautil.models.RuntimeOptions;
|
||||
import org.dromara.sms.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms.api.SmsBlend;
|
||||
import org.dromara.sms.api.callback.CallBack;
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms.comm.annotation.Restricted;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms.comm.utils.http.HttpJsonTool;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
import org.dromara.sms4j.api.callback.CallBack;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.comm.annotation.Restricted;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.comm.utils.http.HttpJsonTool;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-api</name>
|
||||
<description>sms-aggregation-api</description>
|
||||
<name>sms4j-api</name>
|
||||
<description>sms4j-api</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -22,8 +22,8 @@
|
||||
</licenses>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -3,26 +3,24 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<name>sms-aggregation-api</name>
|
||||
<description>sms-aggregation-api</description>
|
||||
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
<name>sms4j-api</name>
|
||||
<description>sms4j-api</description>
|
||||
<version>${revision}</version>
|
||||
|
||||
<properties>
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -1,7 +1,7 @@
|
||||
package org.dromara.sms.api;
|
||||
package org.dromara.sms4j.api;
|
||||
|
||||
import org.dromara.sms.api.callback.CallBack;
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.api.callback.CallBack;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
@ -1,6 +1,6 @@
|
||||
package org.dromara.sms.api.callback;
|
||||
package org.dromara.sms4j.api.callback;
|
||||
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface CallBack {
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.api.entity;
|
||||
package org.dromara.sms4j.api.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-autoimmit</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-autoimmit</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-autoimmit</name>
|
||||
<description>sms-aggregation-autoimmit</description>
|
||||
<name>sms4j-autoimmit</name>
|
||||
<description>sms4j-autoimmit</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -30,8 +30,8 @@
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-core</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@ -40,5 +40,4 @@
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build />
|
||||
</project>
|
||||
@ -3,22 +3,21 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-autoimmit</artifactId>
|
||||
|
||||
<artifactId>sms4j-autoimmit</artifactId>
|
||||
<version>${revision}</version>
|
||||
<name>sms-aggregation-autoimmit</name>
|
||||
<description>sms-aggregation-autoimmit</description>
|
||||
<name>sms4j-autoimmit</name>
|
||||
<description>sms4j-autoimmit</description>
|
||||
|
||||
<properties>
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!--aop依赖-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@ -31,8 +30,8 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-core</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--配置文件提示-->
|
||||
@ -43,9 +42,4 @@
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -1,12 +1,12 @@
|
||||
package org.dromara.sms.autoimmit.aop;
|
||||
package org.dromara.sms4j.autoimmit.aop;
|
||||
|
||||
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms.comm.config.SmsConfig;
|
||||
import org.dromara.sms.autoimmit.utils.RedisUtils;
|
||||
import org.dromara.sms.comm.utils.SmsUtil;
|
||||
import org.dromara.sms.comm.utils.TimeExpiredPoolCache;
|
||||
import org.dromara.sms.autoimmit.utils.SpringUtil;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.comm.config.SmsConfig;
|
||||
import org.dromara.sms4j.autoimmit.utils.RedisUtils;
|
||||
import org.dromara.sms4j.comm.utils.SmsUtil;
|
||||
import org.dromara.sms4j.comm.utils.TimeExpiredPoolCache;
|
||||
import org.dromara.sms4j.autoimmit.utils.SpringUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
@ -32,7 +32,7 @@ public class AopAdvice {
|
||||
private SpringUtil springUtil;
|
||||
|
||||
|
||||
@Pointcut("@annotation(org.dromara.sms.comm.annotation.Restricted)")
|
||||
@Pointcut("@annotation(org.dromara.sms4j.comm.annotation.Restricted)")
|
||||
public void restricted() {
|
||||
}
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
package org.dromara.sms.autoimmit.config;
|
||||
package org.dromara.sms4j.autoimmit.config;
|
||||
|
||||
import org.dromara.sms.autoimmit.aop.AopAdvice;
|
||||
import org.dromara.sms.autoimmit.utils.ConfigUtil;
|
||||
import org.dromara.sms.autoimmit.utils.RedisUtils;
|
||||
import org.dromara.sms.autoimmit.utils.SpringUtil;
|
||||
import org.dromara.sms.comm.config.SmsBanner;
|
||||
import org.dromara.sms.comm.config.SmsConfig;
|
||||
import org.dromara.sms.comm.config.SmsSqlConfig;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.autoimmit.aop.AopAdvice;
|
||||
import org.dromara.sms4j.autoimmit.utils.ConfigUtil;
|
||||
import org.dromara.sms4j.autoimmit.utils.RedisUtils;
|
||||
import org.dromara.sms4j.autoimmit.utils.SpringUtil;
|
||||
import org.dromara.sms4j.comm.config.SmsBanner;
|
||||
import org.dromara.sms4j.comm.config.SmsConfig;
|
||||
import org.dromara.sms4j.comm.config.SmsSqlConfig;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms.core.SupplierSqlConfig;
|
||||
import org.dromara.sms4j.core.SupplierSqlConfig;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@ -1,15 +1,14 @@
|
||||
package org.dromara.sms.autoimmit.config;
|
||||
package org.dromara.sms4j.autoimmit.config;
|
||||
|
||||
import kim.wind.emay.config.EmayConfig;
|
||||
import org.dromara.sms.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms.comm.config.SmsConfig;
|
||||
import org.dromara.sms.core.config.SupplierFactory;
|
||||
import org.dromara.sms.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms.tencent.config.TencentConfig;
|
||||
import org.dromara.sms.unisms.config.UniConfig;
|
||||
import org.dromara.sms.yunpian.config.YunpianConfig;
|
||||
import org.dromara.sms4j.emay.config.EmayConfig;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms4j.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms4j.core.config.SupplierFactory;
|
||||
import org.dromara.sms4j.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms4j.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms4j.tencent.config.TencentConfig;
|
||||
import org.dromara.sms4j.unisms.config.UniConfig;
|
||||
import org.dromara.sms4j.yunpian.config.YunpianConfig;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.autoimmit.utils;
|
||||
package org.dromara.sms4j.autoimmit.utils;
|
||||
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.autoimmit.utils;
|
||||
package org.dromara.sms4j.autoimmit.utils;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.autoimmit.utils;
|
||||
package org.dromara.sms4j.autoimmit.utils;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeansException;
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-cloopen</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-cloopen</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-cloopen</name>
|
||||
<description>sms-aggregation-cloopen</description>
|
||||
<name>sms4j-cloopen</name>
|
||||
<description>sms4j-cloopen</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -26,12 +26,12 @@
|
||||
<artifactId>java-sms-sdk</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -4,15 +4,15 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>sms-aggregation-cloopen</artifactId>
|
||||
<name>sms-aggregation-cloopen</name>
|
||||
<description>sms-aggregation-cloopen</description>
|
||||
<artifactId>sms4j-cloopen</artifactId>
|
||||
<name>sms4j-cloopen</name>
|
||||
<description>sms4j-cloopen</description>
|
||||
<version>${revision}</version>
|
||||
|
||||
<dependencies>
|
||||
@ -23,13 +23,13 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.cloopen.config;
|
||||
package org.dromara.sms4j.cloopen.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
package org.dromara.sms.cloopen.config;
|
||||
package org.dromara.sms4j.cloopen.config;
|
||||
|
||||
import com.cloopen.rest.sdk.BodyType;
|
||||
import com.cloopen.rest.sdk.CCPRestSmsSDK;
|
||||
import org.dromara.sms.cloopen.service.CloopenSmsImpl;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.cloopen.service.CloopenSmsImpl;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
|
||||
/**
|
||||
* 容联云短信配置
|
||||
@ -1,17 +1,17 @@
|
||||
package org.dromara.sms.cloopen.service;
|
||||
package org.dromara.sms4j.cloopen.service;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.cloopen.rest.sdk.CCPRestSmsSDK;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms.api.SmsBlend;
|
||||
import org.dromara.sms.api.callback.CallBack;
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms.comm.annotation.Restricted;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
import org.dromara.sms4j.api.callback.CallBack;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms4j.comm.annotation.Restricted;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Executor;
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-comm</name>
|
||||
<description>sms-aggregation-comm</description>
|
||||
<name>sms4j-comm</name>
|
||||
<description>sms4j-comm</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -3,17 +3,18 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<name>sms-aggregation-comm</name>
|
||||
<description>sms-aggregation-comm</description>
|
||||
<version>${revision}</version>
|
||||
<properties>
|
||||
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
<name>sms4j-comm</name>
|
||||
<description>sms4j-comm</description>
|
||||
<version>${revision}</version>
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@ -28,5 +29,4 @@
|
||||
<artifactId>forest-core</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.annotation;
|
||||
package org.dromara.sms4j.comm.annotation;
|
||||
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.config;
|
||||
package org.dromara.sms4j.comm.config;
|
||||
|
||||
public class SmsBanner {
|
||||
private static final String banner =
|
||||
@ -1,7 +1,7 @@
|
||||
package org.dromara.sms.comm.config;
|
||||
package org.dromara.sms4j.comm.config;
|
||||
|
||||
|
||||
import org.dromara.sms.comm.enumerate.ConfigType;
|
||||
import org.dromara.sms4j.comm.enumerate.ConfigType;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.config;
|
||||
package org.dromara.sms4j.comm.config;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.constant;
|
||||
package org.dromara.sms4j.comm.constant;
|
||||
|
||||
|
||||
/**
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.delayedTime;
|
||||
package org.dromara.sms4j.comm.delayedTime;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.delayedTime;
|
||||
package org.dromara.sms4j.comm.delayedTime;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.enumerate;
|
||||
package org.dromara.sms4j.comm.enumerate;
|
||||
|
||||
/**
|
||||
* ConfigType
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.enumerate;
|
||||
package org.dromara.sms4j.comm.enumerate;
|
||||
|
||||
/**
|
||||
* SupplierType
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.exception;
|
||||
package org.dromara.sms4j.comm.exception;
|
||||
|
||||
public class SmsBlendException extends RuntimeException{
|
||||
public String code;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.exception;
|
||||
package org.dromara.sms4j.comm.exception;
|
||||
|
||||
public class SmsSqlException extends RuntimeException{
|
||||
private String message;
|
||||
@ -1,11 +1,11 @@
|
||||
package org.dromara.sms.comm.factory;
|
||||
package org.dromara.sms4j.comm.factory;
|
||||
|
||||
import com.dtflys.forest.Forest;
|
||||
import com.dtflys.forest.config.ForestConfiguration;
|
||||
import org.dromara.sms.comm.config.SmsConfig;
|
||||
import org.dromara.sms.comm.config.SmsSqlConfig;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.utils.JDBCTool;
|
||||
import org.dromara.sms4j.comm.config.SmsConfig;
|
||||
import org.dromara.sms4j.comm.config.SmsSqlConfig;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.utils.JDBCTool;
|
||||
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.Executor;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.utils;
|
||||
package org.dromara.sms4j.comm.utils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
@ -1,9 +1,9 @@
|
||||
package org.dromara.sms.comm.utils;
|
||||
package org.dromara.sms4j.comm.utils;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import org.dromara.sms.comm.config.SmsSqlConfig;
|
||||
import org.dromara.sms.comm.exception.SmsSqlException;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.comm.config.SmsSqlConfig;
|
||||
import org.dromara.sms4j.comm.exception.SmsSqlException;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
|
||||
import java.sql.*;
|
||||
import java.util.Hashtable;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.utils;
|
||||
package org.dromara.sms4j.comm.utils;
|
||||
|
||||
import cn.hutool.core.io.file.FileReader;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
package org.dromara.sms.comm.utils;
|
||||
package org.dromara.sms4j.comm.utils;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.alibaba.fastjson.JSONException;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.dromara.sms.comm.exception.SmsSqlException;
|
||||
import org.dromara.sms4j.comm.exception.SmsSqlException;
|
||||
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.SecureRandom;
|
||||
@ -1,8 +1,8 @@
|
||||
package org.dromara.sms.comm.utils;
|
||||
package org.dromara.sms4j.comm.utils;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.File;
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.comm.utils.http;
|
||||
package org.dromara.sms4j.comm.utils.http;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-core</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-core</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-core</name>
|
||||
<description>sms-aggregation-core</description>
|
||||
<name>sms4j-core</name>
|
||||
<description>sms4j-core</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -22,32 +22,36 @@
|
||||
</licenses>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-aliyun</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-aliyun</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-tencent</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-tencent</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-unisms</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-unisms</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-yunpian</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-yunpian</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-huawei</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-huawei</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-jdcloud</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-jdcloud</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-cloopen</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-emay</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-cloopen</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build />
|
||||
@ -3,64 +3,64 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-core</artifactId>
|
||||
<version>${revision}</version>
|
||||
<name>sms-aggregation-core</name>
|
||||
<description>sms-aggregation-core</description>
|
||||
<properties>
|
||||
|
||||
<artifactId>sms4j-core</artifactId>
|
||||
<version>${revision}</version>
|
||||
<name>sms4j-core</name>
|
||||
<description>sms4j-core</description>
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-aliyun</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-aliyun</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-tencent</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-tencent</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-unisms</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-unisms</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-yunpian</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-yunpian</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-huawei</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-huawei</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-jdcloud</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-jdcloud</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-emay</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-emay</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-cloopen</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-cloopen</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -1,16 +1,16 @@
|
||||
package org.dromara.sms.core;
|
||||
package org.dromara.sms4j.core;
|
||||
|
||||
import org.dromara.sms.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms.comm.enumerate.SupplierType;
|
||||
import org.dromara.sms.comm.utils.JDBCTool;
|
||||
import org.dromara.sms.comm.utils.SmsUtil;
|
||||
import org.dromara.sms.core.config.SupplierFactory;
|
||||
import org.dromara.sms.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms.tencent.config.TencentConfig;
|
||||
import org.dromara.sms.unisms.config.UniConfig;
|
||||
import org.dromara.sms.yunpian.config.YunpianConfig;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms4j.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms4j.comm.enumerate.SupplierType;
|
||||
import org.dromara.sms4j.comm.utils.JDBCTool;
|
||||
import org.dromara.sms4j.comm.utils.SmsUtil;
|
||||
import org.dromara.sms4j.core.config.SupplierFactory;
|
||||
import org.dromara.sms4j.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms4j.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms4j.tencent.config.TencentConfig;
|
||||
import org.dromara.sms4j.unisms.config.UniConfig;
|
||||
import org.dromara.sms4j.yunpian.config.YunpianConfig;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
package org.dromara.sms.core.config;
|
||||
package org.dromara.sms4j.core.config;
|
||||
|
||||
import kim.wind.emay.config.EmayConfig;
|
||||
import org.dromara.sms.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms.tencent.config.TencentConfig;
|
||||
import org.dromara.sms.unisms.config.UniConfig;
|
||||
import org.dromara.sms.yunpian.config.YunpianConfig;
|
||||
import org.dromara.sms4j.emay.config.EmayConfig;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms4j.cloopen.config.CloopenConfig;
|
||||
import org.dromara.sms4j.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms4j.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms4j.tencent.config.TencentConfig;
|
||||
import org.dromara.sms4j.unisms.config.UniConfig;
|
||||
import org.dromara.sms4j.yunpian.config.YunpianConfig;
|
||||
|
||||
/**
|
||||
* SupplierFactory
|
||||
@ -1,16 +1,16 @@
|
||||
package org.dromara.sms.core.factory;
|
||||
package org.dromara.sms4j.core.factory;
|
||||
|
||||
import kim.wind.emay.config.EmaySmsConfig;
|
||||
import org.dromara.sms.aliyun.config.AlibabaSmsConfig;
|
||||
import org.dromara.sms.api.SmsBlend;
|
||||
import org.dromara.sms.cloopen.config.CloopenSmsConfig;
|
||||
import org.dromara.sms.comm.enumerate.SupplierType;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms.core.config.SupplierFactory;
|
||||
import org.dromara.sms.huawei.config.HuaweiSmsConfig;
|
||||
import org.dromara.sms.jdcloud.config.JdCloudSmsConfig;
|
||||
import org.dromara.sms.tencent.config.TencentSmsConfig;
|
||||
import org.dromara.sms.unisms.config.UniSmsConfig;
|
||||
import org.dromara.sms4j.emay.config.EmaySmsConfig;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaSmsConfig;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
import org.dromara.sms4j.cloopen.config.CloopenSmsConfig;
|
||||
import org.dromara.sms4j.comm.enumerate.SupplierType;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.core.config.SupplierFactory;
|
||||
import org.dromara.sms4j.huawei.config.HuaweiSmsConfig;
|
||||
import org.dromara.sms4j.jdcloud.config.JdCloudSmsConfig;
|
||||
import org.dromara.sms4j.tencent.config.TencentSmsConfig;
|
||||
import org.dromara.sms4j.unisms.config.UniSmsConfig;
|
||||
|
||||
/**
|
||||
* SmsFactory
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-yunpian</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-emay</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-yunpian</name>
|
||||
<description>sms-aggregation-yunpian</description>
|
||||
<name>sms4j-emay</name>
|
||||
<description>sms4j-emay</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -22,12 +22,12 @@
|
||||
</licenses>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -3,30 +3,29 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>sms-aggregation-yunpian</artifactId>
|
||||
<name>sms-aggregation-yunpian</name>
|
||||
<description>sms-aggregation-yunpian</description>
|
||||
<artifactId>sms4j-emay</artifactId>
|
||||
<version>${revision}</version>
|
||||
<properties>
|
||||
<name>sms4j-emay</name>
|
||||
<description>sms4j-emay</description>
|
||||
|
||||
<properties>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
</project>
|
||||
@ -1,17 +1,17 @@
|
||||
package kim.wind.emay.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Richard
|
||||
* @date 2023-04-11 12:00
|
||||
*/
|
||||
@Data
|
||||
public class EmayConfig {
|
||||
/** appKey*/
|
||||
private String appId ;
|
||||
/** appSecret */
|
||||
private String secretKey ;
|
||||
/** APP接入地址*/
|
||||
private String requestUrl;
|
||||
}
|
||||
package org.dromara.sms4j.emay.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Richard
|
||||
* @date 2023-04-11 12:00
|
||||
*/
|
||||
@Data
|
||||
public class EmayConfig {
|
||||
/** appKey*/
|
||||
private String appId ;
|
||||
/** appSecret */
|
||||
private String secretKey ;
|
||||
/** APP接入地址*/
|
||||
private String requestUrl;
|
||||
}
|
||||
@ -1,40 +1,40 @@
|
||||
package kim.wind.emay.config;
|
||||
|
||||
import kim.wind.emay.service.EmaySmsImpl;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
|
||||
/**
|
||||
* EmaySmsConfig
|
||||
* <p> Emay短信对象建造
|
||||
*
|
||||
* @author Richard
|
||||
* @date 2023/04/11 12:00
|
||||
* */
|
||||
public class EmaySmsConfig {
|
||||
private static EmaySmsImpl emaySms;
|
||||
private static EmaySmsConfig emaySmsConfig;
|
||||
|
||||
private EmaySmsConfig() {
|
||||
}
|
||||
|
||||
/** 建造一个亿美软通短信实现*/
|
||||
public static EmaySmsImpl createEmaySms(EmayConfig emayConfig) {
|
||||
if (emaySmsConfig == null){
|
||||
emaySmsConfig = new EmaySmsConfig();
|
||||
}
|
||||
if (emaySms == null){
|
||||
emaySms = new EmaySmsImpl(emayConfig, BeanFactory.getExecutor(),BeanFactory.getDelayedTime());
|
||||
}
|
||||
return emaySms;
|
||||
}
|
||||
|
||||
/** 刷新对象*/
|
||||
public static EmaySmsImpl refresh(EmayConfig emayConfig){
|
||||
if (emaySmsConfig == null){
|
||||
emaySmsConfig = new EmaySmsConfig();
|
||||
}
|
||||
emaySms = new EmaySmsImpl(emayConfig, BeanFactory.getExecutor(),BeanFactory.getDelayedTime());
|
||||
return emaySms;
|
||||
}
|
||||
|
||||
}
|
||||
package org.dromara.sms4j.emay.config;
|
||||
|
||||
import org.dromara.sms4j.emay.service.EmaySmsImpl;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
|
||||
/**
|
||||
* EmaySmsConfig
|
||||
* <p> Emay短信对象建造
|
||||
*
|
||||
* @author Richard
|
||||
* @date 2023/04/11 12:00
|
||||
* */
|
||||
public class EmaySmsConfig {
|
||||
private static EmaySmsImpl emaySms;
|
||||
private static EmaySmsConfig emaySmsConfig;
|
||||
|
||||
private EmaySmsConfig() {
|
||||
}
|
||||
|
||||
/** 建造一个亿美软通短信实现*/
|
||||
public static EmaySmsImpl createEmaySms(EmayConfig emayConfig) {
|
||||
if (emaySmsConfig == null){
|
||||
emaySmsConfig = new EmaySmsConfig();
|
||||
}
|
||||
if (emaySms == null){
|
||||
emaySms = new EmaySmsImpl(emayConfig, BeanFactory.getExecutor(),BeanFactory.getDelayedTime());
|
||||
}
|
||||
return emaySms;
|
||||
}
|
||||
|
||||
/** 刷新对象*/
|
||||
public static EmaySmsImpl refresh(EmayConfig emayConfig){
|
||||
if (emaySmsConfig == null){
|
||||
emaySmsConfig = new EmaySmsConfig();
|
||||
}
|
||||
emaySms = new EmaySmsImpl(emayConfig, BeanFactory.getExecutor(),BeanFactory.getDelayedTime());
|
||||
return emaySms;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,193 +1,193 @@
|
||||
package kim.wind.emay.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.dtflys.forest.config.ForestConfiguration;
|
||||
import kim.wind.emay.config.EmayConfig;
|
||||
import kim.wind.emay.util.EmayBuilder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms.api.SmsBlend;
|
||||
import org.dromara.sms.api.callback.CallBack;
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms.comm.annotation.Restricted;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import static org.dromara.sms.comm.utils.SmsUtil.listToString;
|
||||
|
||||
/**
|
||||
* @author Richard
|
||||
* @date 2023-04-11 12:00
|
||||
*/
|
||||
@Slf4j
|
||||
public class EmaySmsImpl implements SmsBlend {
|
||||
public EmaySmsImpl(EmayConfig config, Executor pool, DelayedTime delayed) {
|
||||
this.config = config;
|
||||
this.pool = pool;
|
||||
this.delayed = delayed;
|
||||
}
|
||||
|
||||
private EmayConfig config;
|
||||
|
||||
private Executor pool;
|
||||
|
||||
private DelayedTime delayed;
|
||||
|
||||
private final ForestConfiguration http = BeanFactory.getForestConfiguration();
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse sendMessage(String phone, String message) {
|
||||
String url = config.getRequestUrl();
|
||||
Map<String, Object> params;
|
||||
try {
|
||||
params = EmayBuilder.buildRequestBody(config.getAppId(), config.getSecretKey(), phone, message);
|
||||
} catch (SmsBlendException e) {
|
||||
SmsResponse smsResponse = new SmsResponse();
|
||||
smsResponse.setErrMessage(e.getMessage());
|
||||
return smsResponse;
|
||||
}
|
||||
return getSendResponse(params, url);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse sendMessage(String phone, String templateId, LinkedHashMap<String, String> messages) {
|
||||
List<String> list = new ArrayList<>();
|
||||
for (Map.Entry<String, String> entry : messages.entrySet()) {
|
||||
list.add(entry.getValue());
|
||||
}
|
||||
return sendMessage(phone, EmayBuilder.listToString(list));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse massTexting(List<String> phones, String message) {
|
||||
if (phones.size() > 500) {
|
||||
throw new SmsBlendException("单次发送超过最大发送上限,建议每次群发短信人数低于500");
|
||||
}
|
||||
return sendMessage(listToString(phones), message);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse massTexting(List<String> phones, String templateId, LinkedHashMap<String, String> messages) {
|
||||
if (phones.size() > 500) {
|
||||
throw new SmsBlendException("单次发送超过最大发送上限,建议每次群发短信人数低于500");
|
||||
}
|
||||
List<String> list = new ArrayList<>();
|
||||
for (Map.Entry<String, String> entry : messages.entrySet()) {
|
||||
list.add(entry.getValue());
|
||||
}
|
||||
return sendMessage(listToString(phones), EmayBuilder.listToString(list));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String message, CallBack callBack) {
|
||||
pool.execute(() -> {
|
||||
SmsResponse smsResponse = sendMessage(phone, message);
|
||||
callBack.callBack(smsResponse);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String message) {
|
||||
pool.execute(() -> sendMessage(phone, message));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String templateId, LinkedHashMap<String, String> messages, CallBack callBack) {
|
||||
pool.execute(() -> {
|
||||
SmsResponse smsResponse = sendMessage(phone, templateId, messages);
|
||||
callBack.callBack(smsResponse);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String templateId, LinkedHashMap<String, String> messages) {
|
||||
pool.execute(() -> sendMessage(phone, templateId, messages));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayedMessage(String phone, String message, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
sendMessage(phone, message);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayedMessage(String phone, String templateId, LinkedHashMap<String, String> messages, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
sendMessage(phone, templateId, messages);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayMassTexting(List<String> phones, String message, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
massTexting(phones, message);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayMassTexting(List<String> phones, String templateId, LinkedHashMap<String, String> messages, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
massTexting(phones, templateId, messages);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
private SmsResponse getSendResponse(Map<String, Object> body, String requestUrl) {
|
||||
AtomicReference<SmsResponse> smsResponse = new AtomicReference<>();
|
||||
http.post(requestUrl)
|
||||
.addBody(body)
|
||||
.onSuccess(((data, req, res) -> {
|
||||
JSONObject jsonBody = res.get(JSONObject.class);
|
||||
smsResponse.set(getSmsResponse(jsonBody));
|
||||
}))
|
||||
.onError((ex, req, res) -> {
|
||||
JSONObject jsonBody = res.get(JSONObject.class);
|
||||
smsResponse.set(getSmsResponse(jsonBody));
|
||||
})
|
||||
.execute();
|
||||
|
||||
return smsResponse.get();
|
||||
}
|
||||
|
||||
|
||||
private static SmsResponse getSmsResponse(JSONObject execute) {
|
||||
SmsResponse smsResponse = new SmsResponse();
|
||||
String code = execute.getString("code");
|
||||
smsResponse.setCode(code);
|
||||
if ("success".equalsIgnoreCase(code)) {
|
||||
JSONObject data = execute.getJSONObject("data");
|
||||
String smsId = data.getString("smsId");
|
||||
smsResponse.setBizId(smsId);
|
||||
}
|
||||
smsResponse.setData(execute);
|
||||
return smsResponse;
|
||||
}
|
||||
}
|
||||
package org.dromara.sms4j.emay.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.dtflys.forest.config.ForestConfiguration;
|
||||
import org.dromara.sms4j.emay.config.EmayConfig;
|
||||
import org.dromara.sms4j.emay.util.EmayBuilder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
import org.dromara.sms4j.api.callback.CallBack;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.comm.annotation.Restricted;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import static org.dromara.sms4j.comm.utils.SmsUtil.listToString;
|
||||
|
||||
/**
|
||||
* @author Richard
|
||||
* @date 2023-04-11 12:00
|
||||
*/
|
||||
@Slf4j
|
||||
public class EmaySmsImpl implements SmsBlend {
|
||||
public EmaySmsImpl(EmayConfig config, Executor pool, DelayedTime delayed) {
|
||||
this.config = config;
|
||||
this.pool = pool;
|
||||
this.delayed = delayed;
|
||||
}
|
||||
|
||||
private EmayConfig config;
|
||||
|
||||
private Executor pool;
|
||||
|
||||
private DelayedTime delayed;
|
||||
|
||||
private final ForestConfiguration http = BeanFactory.getForestConfiguration();
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse sendMessage(String phone, String message) {
|
||||
String url = config.getRequestUrl();
|
||||
Map<String, Object> params;
|
||||
try {
|
||||
params = EmayBuilder.buildRequestBody(config.getAppId(), config.getSecretKey(), phone, message);
|
||||
} catch (SmsBlendException e) {
|
||||
SmsResponse smsResponse = new SmsResponse();
|
||||
smsResponse.setErrMessage(e.getMessage());
|
||||
return smsResponse;
|
||||
}
|
||||
return getSendResponse(params, url);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse sendMessage(String phone, String templateId, LinkedHashMap<String, String> messages) {
|
||||
List<String> list = new ArrayList<>();
|
||||
for (Map.Entry<String, String> entry : messages.entrySet()) {
|
||||
list.add(entry.getValue());
|
||||
}
|
||||
return sendMessage(phone, EmayBuilder.listToString(list));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse massTexting(List<String> phones, String message) {
|
||||
if (phones.size() > 500) {
|
||||
throw new SmsBlendException("单次发送超过最大发送上限,建议每次群发短信人数低于500");
|
||||
}
|
||||
return sendMessage(listToString(phones), message);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public SmsResponse massTexting(List<String> phones, String templateId, LinkedHashMap<String, String> messages) {
|
||||
if (phones.size() > 500) {
|
||||
throw new SmsBlendException("单次发送超过最大发送上限,建议每次群发短信人数低于500");
|
||||
}
|
||||
List<String> list = new ArrayList<>();
|
||||
for (Map.Entry<String, String> entry : messages.entrySet()) {
|
||||
list.add(entry.getValue());
|
||||
}
|
||||
return sendMessage(listToString(phones), EmayBuilder.listToString(list));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String message, CallBack callBack) {
|
||||
pool.execute(() -> {
|
||||
SmsResponse smsResponse = sendMessage(phone, message);
|
||||
callBack.callBack(smsResponse);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String message) {
|
||||
pool.execute(() -> sendMessage(phone, message));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String templateId, LinkedHashMap<String, String> messages, CallBack callBack) {
|
||||
pool.execute(() -> {
|
||||
SmsResponse smsResponse = sendMessage(phone, templateId, messages);
|
||||
callBack.callBack(smsResponse);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void sendMessageAsync(String phone, String templateId, LinkedHashMap<String, String> messages) {
|
||||
pool.execute(() -> sendMessage(phone, templateId, messages));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayedMessage(String phone, String message, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
sendMessage(phone, message);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayedMessage(String phone, String templateId, LinkedHashMap<String, String> messages, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
sendMessage(phone, templateId, messages);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayMassTexting(List<String> phones, String message, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
massTexting(phones, message);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Restricted
|
||||
public void delayMassTexting(List<String> phones, String templateId, LinkedHashMap<String, String> messages, Long delayedTime) {
|
||||
this.delayed.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
massTexting(phones, templateId, messages);
|
||||
}
|
||||
}, delayedTime);
|
||||
}
|
||||
|
||||
private SmsResponse getSendResponse(Map<String, Object> body, String requestUrl) {
|
||||
AtomicReference<SmsResponse> smsResponse = new AtomicReference<>();
|
||||
http.post(requestUrl)
|
||||
.addBody(body)
|
||||
.onSuccess(((data, req, res) -> {
|
||||
JSONObject jsonBody = res.get(JSONObject.class);
|
||||
smsResponse.set(getSmsResponse(jsonBody));
|
||||
}))
|
||||
.onError((ex, req, res) -> {
|
||||
JSONObject jsonBody = res.get(JSONObject.class);
|
||||
smsResponse.set(getSmsResponse(jsonBody));
|
||||
})
|
||||
.execute();
|
||||
|
||||
return smsResponse.get();
|
||||
}
|
||||
|
||||
|
||||
private static SmsResponse getSmsResponse(JSONObject execute) {
|
||||
SmsResponse smsResponse = new SmsResponse();
|
||||
String code = execute.getString("code");
|
||||
smsResponse.setCode(code);
|
||||
if ("success".equalsIgnoreCase(code)) {
|
||||
JSONObject data = execute.getJSONObject("data");
|
||||
String smsId = data.getString("smsId");
|
||||
smsResponse.setBizId(smsId);
|
||||
}
|
||||
smsResponse.setData(execute);
|
||||
return smsResponse;
|
||||
}
|
||||
}
|
||||
@ -1,77 +1,77 @@
|
||||
package kim.wind.emay.util;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.crypto.SecureUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Richard
|
||||
* @version 1.0
|
||||
* @date 2023/4/11 15:11
|
||||
*/
|
||||
@Slf4j
|
||||
public class EmayBuilder {
|
||||
|
||||
|
||||
public static Map<String, Object> buildRequestBody(String appId, String secretKey, String phone,
|
||||
String message) throws SmsBlendException {
|
||||
return getParamsMap(appId, secretKey, phone, message);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param appId 用户Appid(必填)
|
||||
* @param secretKey 加密key
|
||||
* @param phone
|
||||
* @param message
|
||||
* @param customSmsId 自定义消息ID(选填) 最长64位
|
||||
* @return
|
||||
* @throws SmsBlendException
|
||||
*/
|
||||
public static Map<String, Object> buildRequestBody(String appId, String secretKey, String phone,
|
||||
String message, String customSmsId) throws SmsBlendException {
|
||||
Map<String, Object> params = getParamsMap(appId, secretKey, phone, message);
|
||||
params.put("customSmsId", customSmsId);
|
||||
return params;
|
||||
}
|
||||
|
||||
private static Map<String, Object> getParamsMap(String appId, String secretKey, String phone, String message) {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
// 时间戳(必填) 格式:yyyyMMddHHmmss
|
||||
String timestamp = DateUtil.format(new Date(), DateTimeFormatter.ofPattern("yyyyMMddHHmmss"));
|
||||
String sign = SecureUtil.md5(appId + secretKey + timestamp);
|
||||
params.put("appId", appId);
|
||||
params.put("timestamp", timestamp);
|
||||
params.put("sign", sign);
|
||||
params.put("mobiles", phone);
|
||||
try {
|
||||
params.put("content", URLEncoder.encode(message, "utf-8"));
|
||||
} catch (Exception e) {
|
||||
log.error("EmaySmsImpl urlEncode content error", e);
|
||||
throw new SmsBlendException(e.getMessage());
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
public static String listToString(List<String> list) {
|
||||
StringBuilder stringBuffer = new StringBuilder();
|
||||
stringBuffer.append("[\"");
|
||||
for (String s : list) {
|
||||
stringBuffer.append(s);
|
||||
stringBuffer.append("\"");
|
||||
stringBuffer.append(",");
|
||||
}
|
||||
stringBuffer.deleteCharAt(stringBuffer.length() - 1);
|
||||
stringBuffer.append("]");
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
}
|
||||
package org.dromara.sms4j.emay.util;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.crypto.SecureUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Richard
|
||||
* @version 1.0
|
||||
* @date 2023/4/11 15:11
|
||||
*/
|
||||
@Slf4j
|
||||
public class EmayBuilder {
|
||||
|
||||
|
||||
public static Map<String, Object> buildRequestBody(String appId, String secretKey, String phone,
|
||||
String message) throws SmsBlendException {
|
||||
return getParamsMap(appId, secretKey, phone, message);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param appId 用户Appid(必填)
|
||||
* @param secretKey 加密key
|
||||
* @param phone
|
||||
* @param message
|
||||
* @param customSmsId 自定义消息ID(选填) 最长64位
|
||||
* @return
|
||||
* @throws SmsBlendException
|
||||
*/
|
||||
public static Map<String, Object> buildRequestBody(String appId, String secretKey, String phone,
|
||||
String message, String customSmsId) throws SmsBlendException {
|
||||
Map<String, Object> params = getParamsMap(appId, secretKey, phone, message);
|
||||
params.put("customSmsId", customSmsId);
|
||||
return params;
|
||||
}
|
||||
|
||||
private static Map<String, Object> getParamsMap(String appId, String secretKey, String phone, String message) {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
// 时间戳(必填) 格式:yyyyMMddHHmmss
|
||||
String timestamp = DateUtil.format(new Date(), DateTimeFormatter.ofPattern("yyyyMMddHHmmss"));
|
||||
String sign = SecureUtil.md5(appId + secretKey + timestamp);
|
||||
params.put("appId", appId);
|
||||
params.put("timestamp", timestamp);
|
||||
params.put("sign", sign);
|
||||
params.put("mobiles", phone);
|
||||
try {
|
||||
params.put("content", URLEncoder.encode(message, "utf-8"));
|
||||
} catch (Exception e) {
|
||||
log.error("EmaySmsImpl urlEncode content error", e);
|
||||
throw new SmsBlendException(e.getMessage());
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
public static String listToString(List<String> list) {
|
||||
StringBuilder stringBuffer = new StringBuilder();
|
||||
stringBuffer.append("[\"");
|
||||
for (String s : list) {
|
||||
stringBuffer.append(s);
|
||||
stringBuffer.append("\"");
|
||||
stringBuffer.append(",");
|
||||
}
|
||||
stringBuffer.deleteCharAt(stringBuffer.length() - 1);
|
||||
stringBuffer.append("]");
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-huawei</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-huawei</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-huawei</name>
|
||||
<description>sms-aggregation-huawei</description>
|
||||
<name>sms4j-huawei</name>
|
||||
<description>sms4j-huawei</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -22,12 +22,12 @@
|
||||
</licenses>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build />
|
||||
@ -3,35 +3,32 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-emay</artifactId>
|
||||
|
||||
<artifactId>sms4j-huawei</artifactId>
|
||||
<version>${revision}</version>
|
||||
<name>sms-aggregation-emay</name>
|
||||
<description>sms-aggregation-emay</description>
|
||||
<name>sms4j-huawei</name>
|
||||
<description>sms4j-huawei</description>
|
||||
|
||||
<properties>
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.huawei.config;
|
||||
package org.dromara.sms4j.huawei.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package org.dromara.sms.huawei.config;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms.huawei.service.HuaweiSmsImpl;
|
||||
package org.dromara.sms4j.huawei.config;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.huawei.service.HuaweiSmsImpl;
|
||||
|
||||
/**
|
||||
* HuaweiSmsConfig
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.huawei.entity;
|
||||
package org.dromara.sms4j.huawei.entity;
|
||||
|
||||
/**
|
||||
* HuaweiError
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.huawei.entity;
|
||||
package org.dromara.sms4j.huawei.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.huawei.entity;
|
||||
package org.dromara.sms4j.huawei.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,22 +1,23 @@
|
||||
package org.dromara.sms.huawei.service;
|
||||
package org.dromara.sms4j.huawei.service;
|
||||
|
||||
import com.dtflys.forest.config.ForestConfiguration;
|
||||
|
||||
import org.dromara.sms.api.callback.CallBack;
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms.comm.annotation.Restricted;
|
||||
import org.dromara.sms.comm.constant.Constant;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms.huawei.entity.HuaweiResponse;
|
||||
import org.dromara.sms.huawei.utils.HuaweiBuilder;
|
||||
import org.dromara.sms4j.api.callback.CallBack;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.comm.annotation.Restricted;
|
||||
import org.dromara.sms4j.comm.constant.Constant;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms4j.huawei.entity.HuaweiResponse;
|
||||
import org.dromara.sms4j.huawei.utils.HuaweiBuilder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms.api.SmsBlend;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import static org.dromara.sms.huawei.utils.HuaweiBuilder.listToString;
|
||||
import static org.dromara.sms4j.huawei.utils.HuaweiBuilder.listToString;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@ -1,6 +1,6 @@
|
||||
package org.dromara.sms.huawei.utils;
|
||||
package org.dromara.sms4j.huawei.utils;
|
||||
|
||||
import org.dromara.sms.comm.constant.Constant;
|
||||
import org.dromara.sms4j.comm.constant.Constant;
|
||||
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
import javax.net.ssl.SSLContext;
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-jdcloud</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-jdcloud</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-jdcloud</name>
|
||||
<description>sms-aggregation-jdcloud</description>
|
||||
<name>sms4j-jdcloud</name>
|
||||
<description>sms4j-jdcloud</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -26,12 +26,12 @@
|
||||
<artifactId>sms</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -4,15 +4,15 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>sms-aggregation-jdcloud</artifactId>
|
||||
<name>sms-aggregation-jdcloud</name>
|
||||
<description>sms-aggregation-jdcloud</description>
|
||||
<artifactId>sms4j-jdcloud</artifactId>
|
||||
<name>sms4j-jdcloud</name>
|
||||
<description>sms4j-jdcloud</description>
|
||||
<version>${revision}</version>
|
||||
|
||||
<dependencies>
|
||||
@ -23,13 +23,13 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-comm</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-comm</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-api</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package org.dromara.sms.jdcloud.config;
|
||||
package org.dromara.sms4j.jdcloud.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
package org.dromara.sms.jdcloud.config;
|
||||
package org.dromara.sms4j.jdcloud.config;
|
||||
|
||||
import com.jdcloud.sdk.auth.CredentialsProvider;
|
||||
import com.jdcloud.sdk.auth.StaticCredentialsProvider;
|
||||
import com.jdcloud.sdk.http.HttpRequestConfig;
|
||||
import com.jdcloud.sdk.http.Protocol;
|
||||
import com.jdcloud.sdk.service.sms.client.SmsClient;
|
||||
import org.dromara.sms.comm.factory.BeanFactory;
|
||||
import org.dromara.sms.jdcloud.service.JdCloudSmsImpl;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.jdcloud.service.JdCloudSmsImpl;
|
||||
|
||||
/**
|
||||
* 京东云短信配置
|
||||
@ -1,17 +1,17 @@
|
||||
package org.dromara.sms.jdcloud.service;
|
||||
package org.dromara.sms4j.jdcloud.service;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.jdcloud.sdk.service.sms.client.SmsClient;
|
||||
import com.jdcloud.sdk.service.sms.model.BatchSendRequest;
|
||||
import com.jdcloud.sdk.service.sms.model.BatchSendResult;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sms.api.SmsBlend;
|
||||
import org.dromara.sms.api.callback.CallBack;
|
||||
import org.dromara.sms.api.entity.SmsResponse;
|
||||
import org.dromara.sms.comm.annotation.Restricted;
|
||||
import org.dromara.sms.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms.jdcloud.config.JdCloudConfig;
|
||||
import org.dromara.sms4j.api.SmsBlend;
|
||||
import org.dromara.sms4j.api.callback.CallBack;
|
||||
import org.dromara.sms4j.api.entity.SmsResponse;
|
||||
import org.dromara.sms4j.comm.annotation.Restricted;
|
||||
import org.dromara.sms4j.comm.delayedTime.DelayedTime;
|
||||
import org.dromara.sms4j.comm.exception.SmsBlendException;
|
||||
import org.dromara.sms4j.jdcloud.config.JdCloudConfig;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
@ -3,15 +3,15 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-spring-boot-starter</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-spring-boot-starter</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<name>sms-aggregation-spring-boot-starter</name>
|
||||
<description>sms-aggregation-spring-boot-starter</description>
|
||||
<name>sms4j-spring-boot-starter</name>
|
||||
<description>sms4j-spring-boot-starter</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2</name>
|
||||
@ -29,8 +29,8 @@
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-autoimmit</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-autoimmit</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@ -3,20 +3,21 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>kim.wind</groupId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms_aggregation</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sms-aggregation-spring-boot-starter</artifactId>
|
||||
<name>sms-aggregation-spring-boot-starter</name>
|
||||
<description>sms-aggregation-spring-boot-starter</description>
|
||||
|
||||
<artifactId>sms4j-spring-boot-starter</artifactId>
|
||||
<name>sms4j-spring-boot-starter</name>
|
||||
<description>sms4j-spring-boot-starter</description>
|
||||
<version>${revision}</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@ -27,19 +28,18 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>kim.wind</groupId>
|
||||
<artifactId>sms-aggregation-autoimmit</artifactId>
|
||||
<groupId>org.dromara.sms4j</groupId>
|
||||
<artifactId>sms4j-autoimmit</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user