mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
补充 Spring Boot、Solon 天翼云短信差异化配置
This commit is contained in:
parent
4403714ffb
commit
d436df1f56
@ -1,5 +1,6 @@
|
||||
package org.dromara.sms4j.autoimmit.config;
|
||||
|
||||
import org.dromara.sms4j.ctyun.config.CtyunConfig;
|
||||
import org.dromara.sms4j.emay.config.EmayConfig;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaConfig;
|
||||
import org.dromara.sms4j.cloopen.config.CloopenConfig;
|
||||
@ -72,4 +73,13 @@ public class SupplierConfig {
|
||||
protected EmayConfig emayConfig(){
|
||||
return SupplierFactory.getEmayConfig();
|
||||
}
|
||||
|
||||
/**
|
||||
* 天翼云短信差异化配置
|
||||
*/
|
||||
@Bean
|
||||
@ConfigurationProperties(prefix = "sms.ctyun")
|
||||
protected CtyunConfig ctyunConfig(){
|
||||
return SupplierFactory.getCtyunConfig();
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ package org.dromara.sms4j.solon.config;
|
||||
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.ctyun.config.CtyunConfig;
|
||||
import org.dromara.sms4j.emay.config.EmayConfig;
|
||||
import org.dromara.sms4j.huawei.config.HuaweiConfig;
|
||||
import org.dromara.sms4j.jdcloud.config.JdCloudConfig;
|
||||
@ -74,4 +75,10 @@ public class SupplierConfig {
|
||||
public EmayConfig emayConfig(){
|
||||
return injectObj("sms.emay", SupplierFactory.getEmayConfig());
|
||||
}
|
||||
|
||||
/** 天翼云短信差异化配置 */
|
||||
@Bean
|
||||
public CtyunConfig ctyunConfig(){
|
||||
return injectObj("sms.ctyun", SupplierFactory.getCtyunConfig());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user