Commit 85bf53ffd9a1221d9076321eb48f9e95a3ba0ab6
1 parent
ce7b6895
Exists in
master
提交
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
src/HttpServer/logic/function.go
| @@ -789,9 +789,10 @@ func GetdagongList(uuid int) (*WorkList,error) { | @@ -789,9 +789,10 @@ func GetdagongList(uuid int) (*WorkList,error) { | ||
| 789 | return nil,err | 789 | return nil,err |
| 790 | } | 790 | } |
| 791 | 791 | ||
| 792 | + //此处时间改为600s | ||
| 792 | nowtime := int(time.Now().Unix()) | 793 | nowtime := int(time.Now().Unix()) |
| 793 | for i:=0;i<len(list);i++ { | 794 | for i:=0;i<len(list);i++ { |
| 794 | - if nowtime > 4 * 3600 + list[i].InviteTime { | 795 | + if nowtime > 600 + list[i].InviteTime { |
| 795 | list = append(list[:i],list[i+1:]...) | 796 | list = append(list[:i],list[i+1:]...) |
| 796 | i-- | 797 | i-- |
| 797 | } | 798 | } |
src/HttpServer/logic/logic.go
| @@ -417,8 +417,6 @@ func HandleEnterInvite(w http.ResponseWriter, data string) { | @@ -417,8 +417,6 @@ func HandleEnterInvite(w http.ResponseWriter, data string) { | ||
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | 419 | ||
| 420 | - | ||
| 421 | - | ||
| 422 | if err != nil { | 420 | if err != nil { |
| 423 | logger.Error("HandleEnterInvite ERROR_SRVDB_FAILED") | 421 | logger.Error("HandleEnterInvite ERROR_SRVDB_FAILED") |
| 424 | resp.Result.Code = ERROR_SRVDB_FAILED | 422 | resp.Result.Code = ERROR_SRVDB_FAILED |