mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-30 19:22:58 +08:00
add
This commit is contained in:
@ -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){
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
* 热更新包地址
|
||||
|
Reference in New Issue
Block a user