rdtask errdata

This commit is contained in:
wh_zcy 2023-06-06 15:16:50 +08:00
parent 90e6c7a6b5
commit b6ab5221ed
3 changed files with 2 additions and 7 deletions

View File

@ -50,8 +50,6 @@ func (this *apiComp) Rtest(session comm.IUserSession, req *pb.RtaskTestReq) (err
rsp.Flag = true
}
if err := session.SendMsg(string(this.module.GetType()), "rtest", rsp); err != nil {
code = pb.ErrorCode_SystemError
}
session.SendMsg(string(this.module.GetType()), "rtest", rsp)
return
}

View File

@ -261,7 +261,6 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, record *pb.DB
for _, handle := range handles {
conf, err := this.configure.getRtaskTypeById(handle.condId)
if err != nil {
code = pb.ErrorCode_RtaskCondiNoFound
return
}
@ -414,7 +413,6 @@ func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*
func (this *ModuleRtask) CheckCondi(uid string, condiId int32, params ...int32) (errdata *pb.ErrorData) {
record := this.modelRtaskRecord.getRecord(uid)
if record == nil {
code = pb.ErrorCode_DataNotFound
return
}
if len(params) == 0 {
@ -425,7 +423,6 @@ func (this *ModuleRtask) CheckCondi(uid string, condiId int32, params ...int32)
}
}
if _, ok := this.modelRtask.checkCondi(uid, condiId, record, params...); !ok {
code = pb.ErrorCode_RtaskCondiNoReach
return
}
return

View File

@ -448,7 +448,7 @@ func (this *ModelRtask) verifyRtype138(uid string, cfg *cfg.GameRdtaskCondiData,
func (this *ModelRtask) verifyRtype43(uid string, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
equipment, ec := this.module.ModuleEquipment.QueryEquipments(uid)
if ec == pb.ErrorCode_Success {
if ec == nil {
for _, e := range equipment {
if ok, _ = soGreatEqual(e.Lv, cfg.Data2); ok {
count++