任务定时

This commit is contained in:
苏尹岚
2020-10-27 14:34:38 +08:00
parent 55dddcbb75
commit 5199ed7df4
4 changed files with 128 additions and 96 deletions

View File

@@ -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"