Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 262a9e0183 | |||
| 4a827abe9b | |||
| 4db7a11624 |
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user