fix: SQL 配置源初始化亿美软通短信配置

Closes #I6VZNQ
This commit is contained in:
Charles7c 2023-04-15 23:41:13 +08:00
parent 65d9139fd0
commit 93522c5ded

View File

@ -6,6 +6,7 @@ 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.emay.config.EmayConfig;
import org.dromara.sms4j.huawei.config.HuaweiConfig;
import org.dromara.sms4j.jdcloud.config.JdCloudConfig;
import org.dromara.sms4j.tencent.config.TencentConfig;
@ -40,6 +41,7 @@ public class SupplierSqlConfig {
uniSms();
yunPian();
cloopen();
emay();
}
/**
@ -104,7 +106,7 @@ public class SupplierSqlConfig {
/**
* cloopen
* <p>数据库读取并设置联云短信
* <p>数据库读取并设置联云短信
* @author :Wind
*/
public static void cloopen(){
@ -112,4 +114,12 @@ public class SupplierSqlConfig {
SmsUtil.copyBean(cloopenConfig,SupplierFactory.getCloopenConfig());
}
/**
* emay
* <p>数据库读取并设置亿美软通短信
*/
public static void emay() {
EmayConfig emayConfig = SmsUtil.jsonForObject(select.get(SupplierType.EMAY.getName()), EmayConfig.class);
SmsUtil.copyBean(emayConfig, SupplierFactory.getEmayConfig());
}
}