- fix elm setToken bug
This commit is contained in:
9
main.go
9
main.go
@@ -1,22 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/jx-callback/business/jd/controller"
|
||||
"git.rosy.net.cn/jx-callback/business/tasks"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
_ "git.rosy.net.cn/jx-callback/routers"
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/logs"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logs.SetLogFuncCallDepth(3)
|
||||
beego.BConfig.Log.AccessLogs = true
|
||||
|
||||
baseapi.Init(globals.SugarLogger)
|
||||
controller.InitOrder()
|
||||
if beego.BConfig.RunMode == "prod" {
|
||||
if true { //beego.BConfig.RunMode == "prod" {
|
||||
tasks.RefreshWeixinToken()
|
||||
tasks.RefreshElmToken()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user