任务定时
This commit is contained in:
4
main.go
4
main.go
@@ -7,6 +7,8 @@ import (
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
|
||||
// 导入缺省订单调度器
|
||||
@@ -96,7 +98,7 @@ func main() {
|
||||
// globals.SugarLogger.Errorf("RefreshPushToken failed with error:%s", err)
|
||||
// return
|
||||
// }
|
||||
|
||||
cms.ResetJobTimers()
|
||||
if beego.BConfig.RunMode != "prod" {
|
||||
beego.BConfig.WebConfig.DirectoryIndex = true
|
||||
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
||||
|
||||
Reference in New Issue
Block a user