remove-authvalue-from-page-config
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user