This commit is contained in:
meixiongfeng 2022-11-24 23:31:20 +08:00
commit 06cb3d6bf2
2 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,10 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
finishCall()
} else {
this.module.Debug("任务完成条件未通过", log.Fields{"uid": uid, "condiId": curTaskConf.Completetask})
if err := session.SendMsg(string(this.module.GetType()), WorldtaskSubtypeFinish, rsp); err != nil {
code = pb.ErrorCode_SystemError
return
}
return
}
} else {

View File

@ -94,6 +94,7 @@ func (this *Worldtask) TaskcondNotify(session comm.IUserSession, condId int32) e
}
taskConf, err := this.configure.getWorldtaskById(taskId)
if err != nil {
this.Error("world_task config not found", logFields)
return err
}
if taskConf != nil {