- 非生产环境不限制GetMsg的等待时间

This commit is contained in:
gazebo
2019-04-26 11:56:57 +08:00
parent b01968e451
commit 59cb7706a0
2 changed files with 10 additions and 4 deletions

View File

@@ -77,3 +77,7 @@ func Init() {
func IsCallbackAlwaysReturnSuccess() bool {
return beego.BConfig.RunMode == "beta"
}
func IsProductEnv() bool {
return beego.BConfig.RunMode == "prod" || beego.BConfig.RunMode == "jxgy"
}