Skip to content

Commit

Permalink
修复定时任务不能执行的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
chanyipiaomiao committed Mar 26, 2018
2 parents 1c2584c + c4658cc commit c7b1573
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import (
"github.com/astaxie/beego"
)

// 初始化一些配置
func setting() {

// 初始化获取命令行参数
common.InitCli()
func main() {

// 是否启用 定时生成验证密码 功能
if ok, _ := beego.AppConfig.Bool("authpassword::enableCrontabAuthPassword"); ok {
Expand All @@ -22,11 +18,8 @@ func setting() {
if ok, _ := beego.AppConfig.Bool("authpassword::enableManualGenAuthPassword"); ok {
common.CronClearAuthPassword()
}
}

func main() {

// 设置
setting()
// 初始化获取命令行参数
common.InitCli()

}

0 comments on commit c7b1573

Please sign in to comment.