fix: update
This commit is contained in:
@@ -23,15 +23,15 @@ public class SmsInitConfig implements SmartLifecycle {
|
||||
@Resource
|
||||
RedisUtil redisUtil;
|
||||
|
||||
private final String smsConfigPrefix="sys.config.sms";
|
||||
private final String smsConfigPrefix="sys.config.";
|
||||
|
||||
public void init() {
|
||||
SmsConfigInfo configInfo = smsConfigRpc.getConfigInfo(SmsConfigContext.SMS_CONFIG_KEY);
|
||||
String key = redisUtil.buildKey(smsConfigPrefix, SmsConfigContext.SMS_CONFIG_KEY);
|
||||
redisUtil.set(key, configInfo.getConfigValue());
|
||||
if (ObjectUtil.isEmpty(configInfo)){
|
||||
log.info("短信配置获取失败!");
|
||||
}
|
||||
String key = redisUtil.buildKey(smsConfigPrefix, SmsConfigContext.SMS_CONFIG_KEY);
|
||||
redisUtil.set(key, configInfo.getConfigValue());
|
||||
// 初始化短信配置
|
||||
SmsFactory.createSmsBlend(smsReadConfig, configInfo.getConfigValue());
|
||||
}
|
||||
|
@@ -24,5 +24,4 @@ public class ThreadPoolConfig {
|
||||
new CustomNameThreadFactory("rotateCaptcha"),
|
||||
new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user