1
This commit is contained in:
5
main.go
5
main.go
@@ -70,17 +70,21 @@ var (
|
||||
)
|
||||
|
||||
func Init() {
|
||||
globals.SugarLogger.Debugf("------------------1")
|
||||
beegodb.Init()
|
||||
if globals.EnableWXAuth2 {
|
||||
api2.Init()
|
||||
}
|
||||
globals.SugarLogger.Debugf("------------------2")
|
||||
|
||||
defsch.Init()
|
||||
buildTime, err := time.ParseInLocation(time.RFC3339, BuildDate, time.UTC)
|
||||
if err == nil {
|
||||
buildTime = buildTime.Local()
|
||||
}
|
||||
globals.SugarLogger.Debugf("------------------3")
|
||||
cms.InitServiceInfo(Version, buildTime, GitCommit)
|
||||
globals.SugarLogger.Debugf("------------------4")
|
||||
|
||||
if globals.IsProductEnv() {
|
||||
ebai.CurPurchaseHandler.StartRefreshComment()
|
||||
@@ -88,6 +92,7 @@ func Init() {
|
||||
yb.CurPurchaseHandler.StartRefreshComment()
|
||||
jdshop.CurPurchaseHandler.StartRefreshComment()
|
||||
}
|
||||
globals.SugarLogger.Debugf("------------------5")
|
||||
misc.Init()
|
||||
enterprise.Init() // 初始化enterprise key
|
||||
|
||||
|
||||
Reference in New Issue
Block a user