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,14 +78,14 @@ func Testsendhttp() { | ||
| 78 | continue | 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 | right++ | 83 | right++ |
| 84 | logger.Info("RIGHTUUID=%v", oneuid) | 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 | if err != nil { | 86 | if err != nil { |
| 87 | logger.Error("xxxxxxxxxxxxxxxxxxxxx err=%v",err) | 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,8 +69,8 @@ func main() { | ||
| 69 | //go logic.StartHttpServe() | 69 | //go logic.StartHttpServe() |
| 70 | //go logic.StartHttpTicker() | 70 | //go logic.StartHttpTicker() |
| 71 | //time.Sleep(time.Duration(2) * time.Second) | 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 | select { | 75 | select { |
| 76 | case _ = <-ch: | 76 | case _ = <-ch: |