- add test config

- refresh elme and weixin token only in prod env.
- change dada callback to dadadelivery/msg
This commit is contained in:
gazebo
2018-06-29 10:43:40 +08:00
parent 718c54b507
commit 73369ef436
4 changed files with 32 additions and 6 deletions

View File

@@ -16,8 +16,10 @@ func main() {
baseapi.Init(globals.SugarLogger)
controller.InitOrder()
tasks.RefreshWeixinToken()
tasks.RefreshElmToken()
if beego.BConfig.RunMode == "prod" {
tasks.RefreshWeixinToken()
tasks.RefreshElmToken()
}
if beego.BConfig.RunMode == "dev" {
beego.BConfig.WebConfig.DirectoryIndex = true