Add version feature for tank cli.

This commit is contained in:
zicla
2019-05-05 02:42:54 +08:00
parent 5625149766
commit 8dd524e89e
4 changed files with 26 additions and 17 deletions

View File

@ -20,7 +20,7 @@ func (this *PreferenceDao) Fetch() *Preference {
if db.Error != nil {
if db.Error.Error() == result.DB_ERROR_NOT_FOUND {
preference.Name = "蓝眼云盘"
preference.Name = "EyeblueTank"
preference.Version = core.VERSION
this.Create(preference)
return preference