Fix some team project bugs

This commit is contained in:
JiaJu Zhuang
2023-09-09 14:35:45 +08:00
parent 53e25c863b
commit 40a079bd93
7 changed files with 75 additions and 6 deletions

View File

@ -37,6 +37,13 @@ public class Application {
public static void main(String[] args) {
String currentVersion = ConfigUtils.getLocalVersion();
ConfigJson configJson = ConfigUtils.getConfig();
// The unique ID of the entire system will not change after multiple starts
if (StringUtils.isBlank(configJson.getSystemUuid())) {
configJson.setSystemUuid(UUID.fastUUID().toString(true));
ConfigUtils.setConfig(configJson);
}
// Represents that the current version has been successfully launched
if (StringUtils.isNotBlank(currentVersion) && StringUtils.equals(currentVersion,
configJson.getLatestStartupSuccessVersion())) {