上传任务修复
This commit is contained in:
parent
875fa1c36b
commit
eeffd69920
@ -89,7 +89,8 @@ func (this *ModelRtaskRecord) verifyFirstEqualParam(uid string, record *pb.DBRta
|
|||||||
// firstParam (first-greatEqual)
|
// firstParam (first-greatEqual)
|
||||||
func (this *ModelRtaskRecord) verifyFirstGreatEqualParam(uid string, record *pb.DBRtaskRecord, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
|
func (this *ModelRtaskRecord) verifyFirstGreatEqualParam(uid string, record *pb.DBRtaskRecord, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
|
||||||
if len(params) == 1 {
|
if len(params) == 1 {
|
||||||
ok, err = soGreatEqual(params[0], cfg.Data1)
|
ok = true
|
||||||
|
// ok, err = soGreatEqual(params[0], cfg.Data1)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -449,15 +450,14 @@ func (this *ModelRtask) verifyRtype138(uid string, record *pb.DBRtaskRecord, cfg
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *ModelRtask) verifyRtype43(uid string, record *pb.DBRtaskRecord, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
|
func (this *ModelRtask) verifyRtype43(uid string, record *pb.DBRtaskRecord, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
|
||||||
|
|
||||||
equipment, ec := this.moduleRtask.ModuleEquipment.QueryEquipments(uid)
|
equipment, ec := this.moduleRtask.ModuleEquipment.QueryEquipments(uid)
|
||||||
if ec == pb.ErrorCode_Success {
|
if ec == pb.ErrorCode_Success {
|
||||||
for _, e := range equipment {
|
for _, e := range equipment {
|
||||||
if ok, _ = soGreatEqual(e.Lv, cfg.Data2); ok {
|
if ok, _ = soGreatEqual(e.Lv, cfg.Data2); ok {
|
||||||
count++
|
count++
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ok = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user