mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 17:38:38 +08:00
update sms4j-provider/src/main/java/org/dromara/sms4j/ctyun/config/CtyunSmsConfig.java.
Signed-off-by: Charles <charles7c@126.com>
This commit is contained in:
parent
94aeebc508
commit
eab1840660
@ -24,13 +24,13 @@ public class CtyunSmsConfig {
|
|||||||
*
|
*
|
||||||
* @author :bleachhtred
|
* @author :bleachhtred
|
||||||
*/
|
*/
|
||||||
public static CtyunSmsImpl createCtyunSms(CtyunConfig alibabaConfig) {
|
public static CtyunSmsImpl createCtyunSms(CtyunConfig ctyunConfig) {
|
||||||
if (ctyunSmsConfig == null) {
|
if (ctyunSmsConfig == null) {
|
||||||
ctyunSmsConfig = new CtyunSmsConfig();
|
ctyunSmsConfig = new CtyunSmsConfig();
|
||||||
}
|
}
|
||||||
if (ctyunSms == null) {
|
if (ctyunSms == null) {
|
||||||
ctyunSms = new CtyunSmsImpl(
|
ctyunSms = new CtyunSmsImpl(
|
||||||
alibabaConfig,
|
ctyunConfig,
|
||||||
BeanFactory.getExecutor(),
|
BeanFactory.getExecutor(),
|
||||||
BeanFactory.getDelayedTime());
|
BeanFactory.getDelayedTime());
|
||||||
}
|
}
|
||||||
@ -43,14 +43,14 @@ public class CtyunSmsConfig {
|
|||||||
*
|
*
|
||||||
* @author :bleachhtred
|
* @author :bleachhtred
|
||||||
*/
|
*/
|
||||||
public static CtyunSmsImpl refresh(CtyunConfig alibabaConfig) {
|
public static CtyunSmsImpl refresh(CtyunConfig ctyunConfig) {
|
||||||
// 如果配置对象为空则创建一个
|
// 如果配置对象为空则创建一个
|
||||||
if (ctyunSmsConfig == null) {
|
if (ctyunSmsConfig == null) {
|
||||||
ctyunSmsConfig = new CtyunSmsConfig();
|
ctyunSmsConfig = new CtyunSmsConfig();
|
||||||
}
|
}
|
||||||
//重新构造一个实现对象
|
//重新构造一个实现对象
|
||||||
ctyunSms = new CtyunSmsImpl(
|
ctyunSms = new CtyunSmsImpl(
|
||||||
alibabaConfig,
|
ctyunConfig,
|
||||||
BeanFactory.getExecutor(),
|
BeanFactory.getExecutor(),
|
||||||
BeanFactory.getDelayedTime());
|
BeanFactory.getDelayedTime());
|
||||||
return ctyunSms;
|
return ctyunSms;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user