diff --git a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/SystemController.java b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/SystemController.java index e0723ae8..db7cd9a4 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/SystemController.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/SystemController.java @@ -67,7 +67,7 @@ public class SystemController { String user = ""; DataResult dataResult = configService.find(Chat2dbAIClient.CHAT2DB_OPENAI_KEY); if(dataResult.getData() != null){ - user = dataResult.getData().getCode(); + user = dataResult.getData().getContent(); } AppVersionVO appVersionVO = SystemUtils.getLatestVersion(currentVersion, "manual", user); if(appVersionVO == null){ diff --git a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/util/SystemUtils.java b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/util/SystemUtils.java index 9ec67bc6..4bc0f3fe 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/util/SystemUtils.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/util/SystemUtils.java @@ -76,7 +76,7 @@ public class SystemUtils { } } - private static final String LATEST_VERSION_URL = "https://test.sqlgpt.cn/gateway/api/client/version/check/v3?version=%s&type=wechat&userId=%s"; + private static final String LATEST_VERSION_URL = "http://test.sqlgpt.cn/gateway/api/client/version/check/v3?version=%s&type=%s&userId=%s"; public static AppVersionVO getLatestVersion(String version, String type, String userId) { String url = String.format(LATEST_VERSION_URL, version, type, userId); diff --git a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/vo/AppVersionVO.java b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/vo/AppVersionVO.java index 789754e8..9bc6c507 100644 --- a/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/vo/AppVersionVO.java +++ b/chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/system/vo/AppVersionVO.java @@ -11,30 +11,20 @@ public class AppVersionVO { */ private Long id; - /** - * 创建时间 - */ - private LocalDateTime gmtCreate; - - /** - * 修改时间 - */ - private LocalDateTime gmtModified; - /** * 新版本 */ private String version; - /** - * 哪些版本可以升级到该版本 - */ - private String versionUse; +// /** +// * 哪些版本可以升级到该版本 +// */ +// private String versionUse; - /** - * 状态 - */ - private String status; +// /** +// * 状态 +// */ +// private String status; /** * 下载地址 @@ -46,10 +36,10 @@ public class AppVersionVO { */ private String type; - /** - * 白名单,用于测试 - */ - private String whiteList; +// /** +// * 白名单,用于测试 +// */ +// private String whiteList; /** * 热更新包地址