浏览代码

repair the error of version number display after successful update (#805)

link 2 年之前
父节点
当前提交
b9946db854
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      service/system.go

+ 2 - 0
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")
 	}