Finish the transfiguration feature.

This commit is contained in:
zicla
2019-05-04 03:25:09 +08:00
parent 1f64d92dd2
commit 281e856864
4 changed files with 104 additions and 27 deletions

View File

@ -21,7 +21,7 @@ func (this *PreferenceDao) Fetch() *Preference {
if db.Error.Error() == result.DB_ERROR_NOT_FOUND {
preference.Name = "蓝眼云盘"
preference.Version = core.VERSION
this.Create(preference)
return preference
} else {
@ -29,6 +29,7 @@ func (this *PreferenceDao) Fetch() *Preference {
}
}
preference.Version = core.VERSION
return preference
}