Compare commits

..

3 Commits

Author SHA1 Message Date
gxwebsoft 262a9e0183 fix(system): 解决上传配置更新后的缓存同步问题
- 在SettingController中,上传配置变更后清除对应租户的上传缓存,避免接口继续命中旧配置
- 在SettingServiceImpl的更新方法中,上传配置变更成功后删除对应租户的上传缓存,确保配置生效
- 统一处理上传配置缓存清理,提高系统配置更新的正确性和一致性
2026-08-08 00:58:22 +08:00
gxwebsoft 4a827abe9b fix(ui): 修改账户信息卡片标题文案
- 将密码重置页面账户信息卡片的标题从“WebSoft 账户信息”改为“账户信息”
- 将注册成功页面账户信息卡片的标题从“WebSoft 账户信息”改为“账户信息”
2026-08-07 15:59:24 +08:00
gxwebsoft 4db7a11624 fix(ui): 修改账户信息卡片标题文案
- 将密码重置页面账户信息卡片的标题从“WebSoft 账户信息”改为“账户信息”
- 将注册成功页面账户信息卡片的标题从“WebSoft 账户信息”改为“账户信息”
2026-08-07 15:33:54 +08:00
6 changed files with 31 additions and 23 deletions
@@ -111,6 +111,10 @@ public class SettingController extends BaseController {
// 更新系统设置信息到缓存 key = ""
String key = setting.getSettingKey().concat(":").concat(loginUser.getTenantId().toString());
redisUtil.set(key, JSON.parseObject(setting.getContent()));
// 上传配置变更后需同步清除上传缓存,避免 /api/oss/upload 继续命中旧配置
if ("upload".equals(setting.getSettingKey())) {
redisUtil.delete("Upload:" + loginUser.getTenantId());
}
// 更新租户信息
if (setting.getSettingKey().equals("setting")) {
final String content = setting.getContent();
@@ -182,7 +182,15 @@ public class SettingServiceImpl extends ServiceImpl<SettingMapper, Setting> impl
@Override
public boolean updateByKey(Setting setting) {
return update(setting, new QueryWrapper<Setting>().eq("setting_key", setting.getSettingKey()));
boolean ok = update(setting, new QueryWrapper<Setting>().eq("setting_key", setting.getSettingKey()));
// 上传配置变更后必须清缓存,否则 /api/oss/upload 仍读到旧的 Upload:{tenantId} 缓存
if (ok && "upload".equals(setting.getSettingKey())) {
Integer tenantId = setting.getTenantId();
if (tenantId != null) {
redisUtil.delete("Upload:" + tenantId);
}
}
return ok;
}
}
+4 -5
View File
@@ -25,10 +25,9 @@
margin-bottom: 28px;
}
.brand-logo {
font-size: 22px;
font-weight: 600;
color: #1d1d1f;
letter-spacing: -0.022em;
height: 36px;
width: auto;
display: inline-block;
}
.page-title {
text-align: center;
@@ -162,7 +161,7 @@
<div class="container">
<!-- Brand -->
<div class="brand">
<div class="brand-logo">WebSoft</div>
<img src="https://oss.wsdns.cn/20260807/0f469a3167b94e2e81f2ef1433398e5f.png" alt="WebSoft" class="brand-logo">
</div>
<!-- Title + Lede -->
@@ -18,10 +18,9 @@
.container { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.brand { text-align: center; margin-bottom: 28px; }
.brand-logo {
font-size: 22px;
font-weight: 600;
color: #1d1d1f;
letter-spacing: -0.022em;
height: 36px;
width: auto;
display: inline-block;
}
.page-title {
text-align: center;
@@ -159,7 +158,7 @@
<div class="wrap">
<div class="container">
<div class="brand">
<div class="brand-logo">WebSoft</div>
<img src="https://oss.wsdns.cn/20260807/0f469a3167b94e2e81f2ef1433398e5f.png" alt="WebSoft" class="brand-logo">
</div>
<h1 class="page-title">${title!'系统通知'}</h1>
@@ -18,10 +18,9 @@
.container { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.brand { text-align: center; margin-bottom: 28px; }
.brand-logo {
font-size: 22px;
font-weight: 600;
color: #1d1d1f;
letter-spacing: -0.022em;
height: 36px;
width: auto;
display: inline-block;
}
.page-title {
text-align: center;
@@ -207,7 +206,7 @@
<div class="wrap">
<div class="container">
<div class="brand">
<div class="brand-logo">WebSoft</div>
<img src="https://oss.wsdns.cn/20260807/0f469a3167b94e2e81f2ef1433398e5f.png" alt="WebSoft" class="brand-logo">
</div>
<h1 class="page-title">密码重置</h1>
@@ -217,7 +216,7 @@
<!-- 资料大卡 -->
<div class="info-card">
<div class="info-card-title">WebSoft 账户信息</div>
<div class="info-card-title">账户信息</div>
<div class="info-cols">
<div class="info-col">
<div class="field-row">
@@ -19,10 +19,9 @@
.brand { text-align: center; margin-bottom: 28px; }
.brand-logo {
font-size: 22px;
font-weight: 600;
color: #1d1d1f;
letter-spacing: -0.022em;
height: 36px;
width: auto;
display: inline-block;
}
.page-title {
@@ -212,7 +211,7 @@
<div class="container">
<!-- Brand -->
<div class="brand">
<div class="brand-logo">WebSoft</div>
<img src="https://oss.wsdns.cn/20260807/0f469a3167b94e2e81f2ef1433398e5f.png" alt="WebSoft" class="brand-logo">
</div>
<!-- Title + Lede -->
@@ -223,7 +222,7 @@
<!-- 资料大卡:左站点 / 右账号 -->
<div class="info-card">
<div class="info-card-title">WebSoft 账户信息</div>
<div class="info-card-title">账户信息</div>
<div class="info-cols">
<div class="info-col">
<div class="field-row">