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:
Charles 2023-05-12 08:40:33 +00:00 committed by Gitee
parent 94aeebc508
commit eab1840660
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;