diff --git a/comm/const.go b/comm/const.go index 4b40e31d5..862289aa4 100644 --- a/comm/const.go +++ b/comm/const.go @@ -652,7 +652,7 @@ const ( Rtype183 TaskType = 183 Rtype184 TaskType = 184 Rtype185 TaskType = 185 - Rtype186 TaskType = 186 + Rtype186 TaskType = 186 //武馆的派遣悬赏X次 ) const ( diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 39eab486e..023110049 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -311,15 +311,13 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com if conf.Data == 1 { //接取 if r, ok := record.Vals[handle.condId]; ok { - if r.Flag == 0 { + if r.Flag == 0 { //非接取 r.Data = make(map[int32]int32) - r.Flag = 1 + r.Rtype = conf.Type + }else{ + return } - } else { - record.Vals[handle.condId] = &pb.RtaskData{ - Flag: 1, - } - } + } } if handle.update != nil { diff --git a/modules/worldtask/model_worldtask.go b/modules/worldtask/model_worldtask.go index 397da73c1..c9173f9f4 100644 --- a/modules/worldtask/model_worldtask.go +++ b/modules/worldtask/model_worldtask.go @@ -146,6 +146,15 @@ func (this *ModelWorldtask) checkCondi(uid string, condiId int32) bool { ) return false } + //update flag=1 + dr := iwt.GetCondiData(uid) + if dr != nil { + if v, ok := dr.Vals[condiId]; ok { + v.Flag = 1 + iwt.ChangeCondi(uid, dr.Vals) + } + + } return true } }