上传接取商队任务修改
This commit is contained in:
parent
1cf6fdff92
commit
2aea968464
@ -464,15 +464,15 @@ func (this *Worldtask) AcceptCaravanTask(session comm.IUserSession, groupId int3
|
||||
TaskType: curTaskConf.Des,
|
||||
NpcStatus: 1,
|
||||
}
|
||||
if err = this.ModuleBuried.ActiveCondition(uid, curTaskConf.Completetask...); err != nil {
|
||||
log.Errorf("调用接口错误:%s", err.Error())
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ExternalModule,
|
||||
Title: pb.ErrorCode_ExternalModule.String(),
|
||||
Message: fmt.Sprintf("ModuleBuried.ActiveCondition err:%s", err.Error()),
|
||||
}
|
||||
return
|
||||
}
|
||||
// if err = this.ModuleBuried.ActiveCondition(uid, curTaskConf.Completetask...); err != nil {
|
||||
// log.Errorf("调用接口错误:%s", err.Error())
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ExternalModule,
|
||||
// Title: pb.ErrorCode_ExternalModule.String(),
|
||||
// Message: fmt.Sprintf("ModuleBuried.ActiveCondition err:%s", err.Error()),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
if task.Conds, err = this.ModuleBuried.CheckCondition(uid, curTaskConf.Completetask...); err != nil {
|
||||
log.Errorf("调用接口错误:%s", err.Error())
|
||||
errdata = &pb.ErrorData{
|
||||
|
Loading…
Reference in New Issue
Block a user