Commit c24f88f289b607fee3a99e4172b2f4580994add1
1 parent
85bf53ff
Exists in
master
提交
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/function.go
... | ... | @@ -770,7 +770,13 @@ func GetAccountToken(acc string) string { |
770 | 770 | type WorkList []InviteWorkDesc |
771 | 771 | |
772 | 772 | func (wl *WorkList) IsInWork(uuid int) bool { |
773 | - return false | |
773 | + isIn := false | |
774 | + for _,val := range *wl { | |
775 | + if val.Uuid == uuid { | |
776 | + isIn = true | |
777 | + } | |
778 | + } | |
779 | + return isIn | |
774 | 780 | } |
775 | 781 | |
776 | 782 | func GetdagongList(uuid int) (*WorkList,error) { | ... | ... |