repair the error of version number display after successful update (#805)
This commit is contained in:
parent
9eb650b444
commit
b9946db854
1 changed files with 2 additions and 0 deletions
|
@ -232,6 +232,8 @@ func (c *systemService) GetNet(physics bool) []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *systemService) UpdateSystemVersion(version string) {
|
func (s *systemService) UpdateSystemVersion(version string) {
|
||||||
|
keyName := "casa_version"
|
||||||
|
Cache.Delete(keyName)
|
||||||
if file.Exists(config.AppInfo.LogPath + "/upgrade.log") {
|
if file.Exists(config.AppInfo.LogPath + "/upgrade.log") {
|
||||||
os.Remove(config.AppInfo.LogPath + "/upgrade.log")
|
os.Remove(config.AppInfo.LogPath + "/upgrade.log")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue