This commit is contained in:
SwallowGG
2023-10-20 20:33:00 +08:00
parent 499d783c91
commit 3ced9d48f8
3 changed files with 14 additions and 24 deletions

View File

@ -67,7 +67,7 @@ public class SystemController {
String user = "";
DataResult<Config> 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){

View File

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

View File

@ -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;
/**
* 热更新包地址