From fe56d79435a171f92bed243f27a28903f7a7dc9c Mon Sep 17 00:00:00 2001 From: link Date: Thu, 5 Jan 2023 07:16:27 +0000 Subject: [PATCH] repair the error of version number display after successful update --- service/system.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/system.go b/service/system.go index bc3c076..1986745 100644 --- a/service/system.go +++ b/service/system.go @@ -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") }