Skip to content

Commit

Permalink
fix install version
Browse files Browse the repository at this point in the history
  • Loading branch information
phachon committed Feb 15, 2020
1 parent d6bce3a commit 2489398
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install/storage/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func NewData() *data {
return &data{
License: License_Disagree,
Env: Env_NotAccess,
Version: "",
System: Sys_NotAccess,
Database: Database_NotAccess,
SystemConf: defaultSystemConf,
Expand All @@ -84,7 +83,6 @@ func NewData() *data {
type data struct {
License int
Env int
Version string
System int
Database int
SystemConf map[string]string
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 2489398

Please sign in to comment.