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
*/
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;