Add a new field version into preference.

This commit is contained in:
zicla
2018-01-01 15:57:39 +08:00
parent 68c7da1f58
commit f49f9137fe
4 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,7 @@ func (this *PreferenceDao) Fetch() *Preference {
if db.Error.Error() == "record not found" {
preference.Name = "蓝眼云盘"
preference.Version = VERSION
this.Create(preference)
return preference
} else {