feat(mode): add demo mode (#1121)

* feat(mode): add demo mode

* chroe: Update store/db/db.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

* chroe: Update store/db/db.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
Yoshino-s
2023-02-19 13:36:45 +08:00
committed by GitHub
parent d0b8b076cf
commit afaaec8492
9 changed files with 27 additions and 23 deletions

View File

@ -15,7 +15,7 @@ var Version = "0.10.3"
var DevVersion = "0.10.3"
func GetCurrentVersion(mode string) string {
if mode == "dev" {
if mode == "dev" || mode == "demo" {
return DevVersion
}
return Version