This commit is contained in:
苏尹岚
2020-10-27 18:28:30 +08:00
parent cba8a36aae
commit 965293fc14

View File

@@ -6,6 +6,7 @@ import (
"net/http" "net/http"
_ "net/http/pprof" _ "net/http/pprof"
"os" "os"
"time"
"git.rosy.net.cn/jx-callback/business/jxstore/cms" "git.rosy.net.cn/jx-callback/business/jxstore/cms"
@@ -36,6 +37,12 @@ var (
func Init() { func Init() {
beegodb.Init() beegodb.Init()
buildTime, err := time.ParseInLocation(time.RFC3339, BuildDate, time.UTC)
if err == nil {
buildTime = buildTime.Local()
}
cms.InitServiceInfo(Version, buildTime, GitCommit)
} }
// 返回true表示非运行服务 // 返回true表示非运行服务