mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +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
|
||||
*/
|
||||
public static CtyunSmsImpl createCtyunSms(CtyunConfig alibabaConfig) {
|
||||
public static CtyunSmsImpl createCtyunSms(CtyunConfig ctyunConfig) {
|
||||
if (ctyunSmsConfig == null) {
|
||||
ctyunSmsConfig = new CtyunSmsConfig();
|
||||
}
|
||||
if (ctyunSms == null) {
|
||||
ctyunSms = new CtyunSmsImpl(
|
||||
alibabaConfig,
|
||||
ctyunConfig,
|
||||
BeanFactory.getExecutor(),
|
||||
BeanFactory.getDelayedTime());
|
||||
}
|
||||
@ -43,14 +43,14 @@ public class CtyunSmsConfig {
|
||||
*
|
||||
* @author :bleachhtred
|
||||
*/
|
||||
public static CtyunSmsImpl refresh(CtyunConfig alibabaConfig) {
|
||||
public static CtyunSmsImpl refresh(CtyunConfig ctyunConfig) {
|
||||
// 如果配置对象为空则创建一个
|
||||
if (ctyunSmsConfig == null) {
|
||||
ctyunSmsConfig = new CtyunSmsConfig();
|
||||
}
|
||||
//重新构造一个实现对象
|
||||
ctyunSms = new CtyunSmsImpl(
|
||||
alibabaConfig,
|
||||
ctyunConfig,
|
||||
BeanFactory.getExecutor(),
|
||||
BeanFactory.getDelayedTime());
|
||||
return ctyunSms;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user