فهرست منبع

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")
 	}