去除getAPI("")调用,没有vendorOrgCode时报警

This commit is contained in:
gazebo
2019-12-13 10:59:21 +08:00
parent 2ddd16460a
commit b7ca827ca7
8 changed files with 17 additions and 27 deletions

View File

@@ -59,8 +59,6 @@ var (
)
func init() {
OutputDebugMsgLevel = 1
logs.SetLogFuncCallDepth(3)
beego.BConfig.Log.AccessLogs = true
@@ -71,6 +69,10 @@ func init() {
}
func Init() {
if IsProductEnv(){
OutputDebugMsgLevel = 1
}
SugarLogger.Infof("globals RunMode=%s", beego.BConfig.RunMode)
ReallyCallPlatformAPI = (beego.BConfig.RunMode != "dev" && beego.BConfig.RunMode != "test")
ReallySendWeixinMsg = ReallyCallPlatformAPI && IsProductEnv()