feat(config): /app/config 下发登录页背景地址
backend-ci / test (push) Canceled after 0s

This commit is contained in:
jianghaifeng authored and trae-solo-agent committed 2026-10-30 17:14:46 +08:00
1 parent f2103f6604
commit 958de5ef22
3 files changed
+4

No files matched your search

@@ -90,6 +90,7 @@ class AppCreatorAndConfigContractTest {
whitelist.put("noticeEnabled", true);
whitelist.put("coinUnlockEnabled", true);
whitelist.put("downloadEnabled", true);
whitelist.put("loginBackgroundUrl", "");
given(appConfigService.appConfig()).willReturn(whitelist);
String body = configMvc.perform(get("/app/config"))
@@ -97,6 +98,7 @@ class AppCreatorAndConfigContractTest {
.andExpect(jsonPath("$.code").value(0))
.andExpect(jsonPath("$.data.agreementVersion").value("2026-10-01"))
.andExpect(jsonPath("$.data.forceUpdate").value(false))
.andExpect(jsonPath("$.data.loginBackgroundUrl").value(""))
.andReturn().getResponse().getContentAsString(java.nio.charset.StandardCharsets.UTF_8);
// 没登录也能拿到(匿名)