service
This commit is contained in:
7
main.go
7
main.go
@@ -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表示非运行服务
|
||||||
|
|||||||
Reference in New Issue
Block a user