repair the error of version number display after successful update

This commit is contained in:
link 2023-01-05 07:16:27 +00:00
parent 9eb650b444
commit fe56d79435

View File

@ -232,6 +232,8 @@ func (c *systemService) GetNet(physics bool) []string {
}
func (s *systemService) UpdateSystemVersion(version string) {
keyName := "casa_version"
Cache.Delete(keyName)
if file.Exists(config.AppInfo.LogPath + "/upgrade.log") {
os.Remove(config.AppInfo.LogPath + "/upgrade.log")
}