From 248939853801b60ce92a63c8749ffce140aa817e Mon Sep 17 00:00:00 2001 From: phachon Date: Sat, 15 Feb 2020 11:29:36 +0800 Subject: [PATCH] fix install version --- install/storage/data.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/storage/data.go b/install/storage/data.go index a52d36c4..8634153b 100644 --- a/install/storage/data.go +++ b/install/storage/data.go @@ -70,7 +70,6 @@ func NewData() *data { return &data{ License: License_Disagree, Env: Env_NotAccess, - Version: "", System: Sys_NotAccess, Database: Database_NotAccess, SystemConf: defaultSystemConf, @@ -84,7 +83,6 @@ func NewData() *data { type data struct { License int Env int - Version string System int Database int SystemConf map[string]string @@ -213,7 +211,7 @@ func writeInstallData() (err error) { return } defer stmt.Close() - _, err = stmt.Exec("系统版本号", "system_version", Data.Version, time.Now().Unix(), time.Now().Unix()) + _, err = stmt.Exec("系统版本号", "system_version", global.SYSTEM_VERSION, time.Now().Unix(), time.Now().Unix()) return err }