This commit is contained in:
SwallowGG
2023-10-20 19:55:45 +08:00
parent e3252d9d9d
commit 499d783c91
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ public class SystemController {
if(appVersionVO == null){
appVersionVO = new AppVersionVO();
appVersionVO.setVersion(currentVersion);
appVersionVO.setType("manual");
}
DataResult<Config> updateType = configService.find(UPDATE_TYPE);
if(updateType.getData() != null){

View File

@ -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);