- add elm client urge msg.
This commit is contained in:
9
main.go
9
main.go
@@ -8,12 +8,13 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
controller.InitOrder()
|
||||
if true { //beego.BConfig.RunMode == "prod" {
|
||||
tasks.RefreshWeixinToken()
|
||||
tasks.RefreshElmToken()
|
||||
if beego.BConfig.RunMode == "prod" {
|
||||
controller.InitOrder()
|
||||
}
|
||||
|
||||
tasks.RefreshWeixinToken()
|
||||
tasks.RefreshElmToken()
|
||||
|
||||
if beego.BConfig.RunMode == "dev" {
|
||||
beego.BConfig.WebConfig.DirectoryIndex = true
|
||||
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
||||
|
||||
Reference in New Issue
Block a user