This commit is contained in:
wh_zcy 2023-05-26 13:38:44 +08:00
parent b5d3384fca
commit 48bcda8afc
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle
handles = append(handles, handle)
this.registerVerifyHandle(v.Id, handle)
// 两个参数 第一个大于等于 第二个等于
case comm.Rtype159, comm.Rtype160, comm.Rtype75:
case comm.Rtype61, comm.Rtype159, comm.Rtype160, comm.Rtype75:
handle := &rtaskCondHandle{
condId: v.Id,
verify: this.modelRtaskRecord.verifyMultiEqual, //两个参数 等于
@ -109,7 +109,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle
handles = append(handles, handle)
this.registerVerifyHandle(v.Id, handle)
// 一个参数且覆盖
case comm.Rtype61, comm.Rtype109, comm.Rtype129, comm.Rtype134:
case comm.Rtype109, comm.Rtype129, comm.Rtype134:
handle := &rtaskCondHandle{
condId: v.Id,
verify: this.modelRtaskRecord.verifyFirstEqualParam,
@ -317,7 +317,7 @@ func (this *ModuleRtask) TriggerTask(uid string, taskParams ...*comm.TaskParam)
}
func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*comm.TaskParam) {
lock, _ := this.modelRtask.userlock(session.GetUserId())
err := lock.Lock()
if err != nil {

View File

@ -37,7 +37,7 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
// 当前任务配置
curTaskConf, err := a.module.configure.getWorldtaskById(req.TaskId)
if err != nil || curTaskConf == nil {
code = pb.ErrorCode_ConfigNoFound
code = pb.ErrorCode_ConfigNoFound
log.Error("世界任务配置未找到",
log.Field{Key: "uid", Value: uid},
log.Field{Key: "taskId", Value: req.TaskId},