上传任务代码
This commit is contained in:
parent
ecb1309e05
commit
fbc5261f75
@ -84,15 +84,15 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
||||
userTask.Uid = uid
|
||||
}
|
||||
|
||||
// 前置任务ID 只有世界任务才校验前置
|
||||
if !this.module.modelWorldtask.IsPreFinished(userTask, curTaskConf) {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_WorldtaskLastUnFinished,
|
||||
Title: pb.ErrorCode_WorldtaskLastUnFinished.ToString(),
|
||||
Message: fmt.Sprintf("任务[%v]的前置任务 [%v] 未完成", curTaskConf.Key, curTaskConf.Ontxe),
|
||||
}
|
||||
return
|
||||
}
|
||||
// 前置任务ID 只有世界任务才校验前置 (完成任务无需校验前置任务)
|
||||
// if !this.module.modelWorldtask.IsPreFinished(userTask, curTaskConf) {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_WorldtaskLastUnFinished,
|
||||
// Title: pb.ErrorCode_WorldtaskLastUnFinished.ToString(),
|
||||
// Message: fmt.Sprintf("任务[%v]的前置任务 [%v] 未完成", curTaskConf.Key, curTaskConf.Ontxe),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
//判断任务是否已完成
|
||||
for _, v := range userTask.TaskList {
|
||||
|
Loading…
Reference in New Issue
Block a user