rdtask errdata
This commit is contained in:
parent
90e6c7a6b5
commit
b6ab5221ed
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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++
|
||||
|
Loading…
Reference in New Issue
Block a user