This commit is contained in:
suyl
2021-06-28 18:46:37 +08:00
parent 0540488e2f
commit 274b9c7cba
2 changed files with 6 additions and 18 deletions

View File

@@ -141,5 +141,9 @@ func IsMainProductEnv() bool {
}
func IsProductEnv() bool {
return beego.BConfig.RunMode == "rsm"
}
func IsPrintEnv() bool {
return beego.BConfig.RunMode == "print"
}