mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-30 19:22:58 +08:00
add
This commit is contained in:
@ -73,6 +73,7 @@ public class SystemController {
|
|||||||
if(appVersionVO == null){
|
if(appVersionVO == null){
|
||||||
appVersionVO = new AppVersionVO();
|
appVersionVO = new AppVersionVO();
|
||||||
appVersionVO.setVersion(currentVersion);
|
appVersionVO.setVersion(currentVersion);
|
||||||
|
appVersionVO.setType("manual");
|
||||||
}
|
}
|
||||||
DataResult<Config> updateType = configService.find(UPDATE_TYPE);
|
DataResult<Config> updateType = configService.find(UPDATE_TYPE);
|
||||||
if(updateType.getData() != null){
|
if(updateType.getData() != null){
|
||||||
|
@ -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) {
|
public static AppVersionVO getLatestVersion(String version, String type, String userId) {
|
||||||
String url = String.format(LATEST_VERSION_URL, version, type, userId);
|
String url = String.format(LATEST_VERSION_URL, version, type, userId);
|
||||||
|
Reference in New Issue
Block a user