上传代码
This commit is contained in:
parent
6767935cc5
commit
564f317aff
File diff suppressed because it is too large
Load Diff
@ -146,13 +146,11 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
var flag bool
|
||||
conds, err := a.module.ModuleBuried.CheckCondition(uid, curTaskConf.Completetask...)
|
||||
if err == nil {
|
||||
flag = true
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
flag = true
|
||||
rsp.Conds = append(rsp.Conds, cond)
|
||||
} else {
|
||||
rsp.Conds = append(rsp.Conds, cond)
|
||||
if cond.State != pb.BuriedItemFinishState_buried_finish {
|
||||
flag = false
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -170,9 +168,9 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
||||
if err == nil {
|
||||
// var unfinishCondIds []int32
|
||||
for _, cond := range conds {
|
||||
if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
rsp.Conds = append(rsp.Conds, cond)
|
||||
}
|
||||
// if cond.State == pb.BuriedItemFinishState_buried_finish {
|
||||
rsp.Conds = append(rsp.Conds, cond)
|
||||
// }
|
||||
// else if cond.State == pb.BuriedItemFinishState_buried_unfinish {
|
||||
// unfinishCondIds = append(unfinishCondIds, cond.Conid)
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user