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 1e4e8f19..e0723ae8 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 @@ -73,6 +73,7 @@ public class SystemController { if(appVersionVO == null){ appVersionVO = new AppVersionVO(); appVersionVO.setVersion(currentVersion); + appVersionVO.setType("manual"); } DataResult updateType = configService.find(UPDATE_TYPE); if(updateType.getData() != 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 65f1870a..9ec67bc6 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/api/client/version/check/v3?version=%s&type=wechat&userId=%s"; + private static final String LATEST_VERSION_URL = "https://test.sqlgpt.cn/gateway/api/client/version/check/v3?version=%s&type=wechat&userId=%s"; public static AppVersionVO getLatestVersion(String version, String type, String userId) { String url = String.format(LATEST_VERSION_URL, version, type, userId);