|
@@ -4,6 +4,8 @@ import (
|
4
|
4
|
"annual-lottery2/models/model"
|
5
|
5
|
"annual-lottery2/utils"
|
6
|
6
|
"strings"
|
|
7
|
+
|
|
8
|
+ "github.com/astaxie/beego"
|
7
|
9
|
)
|
8
|
10
|
|
9
|
11
|
// UserFilters 用户过滤
|
|
@@ -11,16 +13,19 @@ func UserFilters(lvl string) ([]model.TaUser, string) {
|
11
|
13
|
cf := "./conf/test.conf"
|
12
|
14
|
usrs := make([]model.TaUser, 0)
|
13
|
15
|
notIn := make([]string, 0)
|
|
16
|
+ beego.Info("--------> 1")
|
14
|
17
|
|
15
|
18
|
if !utils.FileExists(cf) {
|
16
|
19
|
return usrs, ""
|
17
|
20
|
}
|
18
|
21
|
|
|
22
|
+ beego.Info("--------> 2")
|
19
|
23
|
conf, err := utils.GetConfig(cf)
|
20
|
24
|
if err != nil {
|
21
|
25
|
return usrs, ""
|
22
|
26
|
}
|
23
|
27
|
|
|
28
|
+ beego.Info("--------> 3")
|
24
|
29
|
pls := conf.String("conf")
|
25
|
30
|
if pls == "" {
|
26
|
31
|
return usrs, ""
|