remove-authvalue-from-page-config

This commit is contained in:
mediabot-pt
2026-07-06 12:15:40 +08:00
parent 7042149a13
commit 02b7278c8c
2 changed files with 5 additions and 11 deletions

View File

@@ -37,7 +37,6 @@ public class SitePagesServiceImpl implements SitePagesService {
result.put("version", sp.getVersion());
result.put("entries", parsed.getOrDefault("entries", List.of()));
if (parsed.containsKey("authType")) result.put("authType", parsed.get("authType"));
if (parsed.containsKey("authValue")) result.put("authValue", parsed.get("authValue"));
result.put("updatedAt", sp.getUpdatedAt());
return result;
} catch (Exception e) {
@@ -65,7 +64,6 @@ public class SitePagesServiceImpl implements SitePagesService {
Map<String, Object> full = new LinkedHashMap<>();
full.put("entries", entries);
if (authType != null && !"NONE".equals(authType)) full.put("authType", authType);
if (authValue != null && !authValue.isBlank()) full.put("authValue", authValue);
String json = om.writerWithDefaultPrettyPrinter().writeValueAsString(full);
// 版本号递增
String currentVer = getVersion(siteId);