fix: update

This commit is contained in:
landaiqing
2024-05-18 23:23:45 +08:00
parent 8f4b8a3331
commit 047c019151
19 changed files with 1375 additions and 15 deletions

View File

@@ -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());
}

View File

@@ -24,5 +24,4 @@ public class ThreadPoolConfig {
new CustomNameThreadFactory("rotateCaptcha"),
new ThreadPoolExecutor.CallerRunsPolicy());
}
}