任务条件未通过不发送完成消息
This commit is contained in:
parent
62904759e2
commit
5a1966c4df
@ -168,10 +168,11 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
|||||||
log.Field{Key: "uid", Value: uid},
|
log.Field{Key: "uid", Value: uid},
|
||||||
log.Field{Key: "condiId", Value: curTaskConf.Completetask},
|
log.Field{Key: "condiId", Value: curTaskConf.Completetask},
|
||||||
)
|
)
|
||||||
if err := session.SendMsg(string(this.module.GetType()), WorldtaskSubtypeFinish, rsp); err != nil {
|
code = pb.ErrorCode_TaskNoFinished
|
||||||
code = pb.ErrorCode_SystemError
|
// if err := session.SendMsg(string(this.module.GetType()), WorldtaskSubtypeFinish, rsp); err != nil {
|
||||||
return
|
// code = pb.ErrorCode_SystemError
|
||||||
}
|
// return
|
||||||
|
// }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user