We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c2584c + c4658cc commit c7b1573Copy full SHA for c7b1573
main.go
@@ -7,11 +7,7 @@ import (
7
"github.com/astaxie/beego"
8
)
9
10
-// 初始化一些配置
11
-func setting() {
12
-
13
- // 初始化获取命令行参数
14
- common.InitCli()
+func main() {
15
16
// 是否启用 定时生成验证密码 功能
17
if ok, _ := beego.AppConfig.Bool("authpassword::enableCrontabAuthPassword"); ok {
@@ -22,11 +18,8 @@ func setting() {
22
18
if ok, _ := beego.AppConfig.Bool("authpassword::enableManualGenAuthPassword"); ok {
23
19
common.CronClearAuthPassword()
24
20
}
25
-}
26
21
27
-func main() {
28
29
- // 设置
30
- setting()
+ // 初始化获取命令行参数
+ common.InitCli()
31
32
0 commit comments