Commit 2b3004a6e8e58b36d54e1b70cb3f602ea6e3eac1
1 parent
96dbd459
Exists in
master
提交
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
... | ... | @@ -78,14 +78,14 @@ func Testsendhttp() { |
78 | 78 | continue |
79 | 79 | } |
80 | 80 | |
81 | - if data.SumLoginDay <= 3 { | |
82 | - if int(time.Now().Unix())-data.LastLoginTime > 60*86400 { | |
81 | + if data.SumLoginDay <= 100 { | |
82 | + if int(time.Now().Unix())-data.LastLoginTime > 30*86400 { | |
83 | 83 | right++ |
84 | 84 | logger.Info("RIGHTUUID=%v", oneuid) |
85 | - err := redishandler.GetRedisClient().HDel(redis.USER_DATA_KEY, oneuid) | |
85 | + /*err := redishandler.GetRedisClient().HDel(redis.USER_DATA_KEY, oneuid) | |
86 | 86 | if err != nil { |
87 | 87 | logger.Error("xxxxxxxxxxxxxxxxxxxxx err=%v",err) |
88 | - } | |
88 | + }*/ | |
89 | 89 | } |
90 | 90 | } |
91 | 91 | } | ... | ... |
src/HttpServer/main/main.go
... | ... | @@ -69,8 +69,8 @@ func main() { |
69 | 69 | //go logic.StartHttpServe() |
70 | 70 | //go logic.StartHttpTicker() |
71 | 71 | //time.Sleep(time.Duration(2) * time.Second) |
72 | - go logic.ClearTaskAndAchieve() | |
73 | - //go logic.Testsendhttp() | |
72 | + //go logic.ClearTaskAndAchieve() | |
73 | + go logic.Testsendhttp() | |
74 | 74 | |
75 | 75 | select { |
76 | 76 | case _ = <-ch: | ... | ... |