Rtype61
This commit is contained in:
parent
b5d3384fca
commit
48bcda8afc
@ -100,7 +100,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle
|
|||||||
handles = append(handles, handle)
|
handles = append(handles, handle)
|
||||||
this.registerVerifyHandle(v.Id, handle)
|
this.registerVerifyHandle(v.Id, handle)
|
||||||
// 两个参数 第一个大于等于 第二个等于
|
// 两个参数 第一个大于等于 第二个等于
|
||||||
case comm.Rtype159, comm.Rtype160, comm.Rtype75:
|
case comm.Rtype61, comm.Rtype159, comm.Rtype160, comm.Rtype75:
|
||||||
handle := &rtaskCondHandle{
|
handle := &rtaskCondHandle{
|
||||||
condId: v.Id,
|
condId: v.Id,
|
||||||
verify: this.modelRtaskRecord.verifyMultiEqual, //两个参数 等于
|
verify: this.modelRtaskRecord.verifyMultiEqual, //两个参数 等于
|
||||||
@ -109,7 +109,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle
|
|||||||
handles = append(handles, handle)
|
handles = append(handles, handle)
|
||||||
this.registerVerifyHandle(v.Id, handle)
|
this.registerVerifyHandle(v.Id, handle)
|
||||||
// 一个参数且覆盖
|
// 一个参数且覆盖
|
||||||
case comm.Rtype61, comm.Rtype109, comm.Rtype129, comm.Rtype134:
|
case comm.Rtype109, comm.Rtype129, comm.Rtype134:
|
||||||
handle := &rtaskCondHandle{
|
handle := &rtaskCondHandle{
|
||||||
condId: v.Id,
|
condId: v.Id,
|
||||||
verify: this.modelRtaskRecord.verifyFirstEqualParam,
|
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) {
|
func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*comm.TaskParam) {
|
||||||
|
|
||||||
lock, _ := this.modelRtask.userlock(session.GetUserId())
|
lock, _ := this.modelRtask.userlock(session.GetUserId())
|
||||||
err := lock.Lock()
|
err := lock.Lock()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -37,7 +37,7 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq)
|
|||||||
// 当前任务配置
|
// 当前任务配置
|
||||||
curTaskConf, err := a.module.configure.getWorldtaskById(req.TaskId)
|
curTaskConf, err := a.module.configure.getWorldtaskById(req.TaskId)
|
||||||
if err != nil || curTaskConf == nil {
|
if err != nil || curTaskConf == nil {
|
||||||
code = pb.ErrorCode_ConfigNoFound
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
log.Error("世界任务配置未找到",
|
log.Error("世界任务配置未找到",
|
||||||
log.Field{Key: "uid", Value: uid},
|
log.Field{Key: "uid", Value: uid},
|
||||||
log.Field{Key: "taskId", Value: req.TaskId},
|
log.Field{Key: "taskId", Value: req.TaskId},
|
||||||
|
Loading…
Reference in New Issue
Block a user