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
|
rsp.Flag = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := session.SendMsg(string(this.module.GetType()), "rtest", rsp); err != nil {
|
session.SendMsg(string(this.module.GetType()), "rtest", rsp)
|
||||||
code = pb.ErrorCode_SystemError
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,6 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, record *pb.DB
|
|||||||
for _, handle := range handles {
|
for _, handle := range handles {
|
||||||
conf, err := this.configure.getRtaskTypeById(handle.condId)
|
conf, err := this.configure.getRtaskTypeById(handle.condId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
code = pb.ErrorCode_RtaskCondiNoFound
|
|
||||||
return
|
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) {
|
func (this *ModuleRtask) CheckCondi(uid string, condiId int32, params ...int32) (errdata *pb.ErrorData) {
|
||||||
record := this.modelRtaskRecord.getRecord(uid)
|
record := this.modelRtaskRecord.getRecord(uid)
|
||||||
if record == nil {
|
if record == nil {
|
||||||
code = pb.ErrorCode_DataNotFound
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(params) == 0 {
|
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 {
|
if _, ok := this.modelRtask.checkCondi(uid, condiId, record, params...); !ok {
|
||||||
code = pb.ErrorCode_RtaskCondiNoReach
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
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) {
|
func (this *ModelRtask) verifyRtype43(uid string, cfg *cfg.GameRdtaskCondiData, params ...int32) (ok bool, count int32, err error) {
|
||||||
equipment, ec := this.module.ModuleEquipment.QueryEquipments(uid)
|
equipment, ec := this.module.ModuleEquipment.QueryEquipments(uid)
|
||||||
if ec == pb.ErrorCode_Success {
|
if ec == nil {
|
||||||
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++
|
||||||
|
Loading…
Reference in New Issue
Block a user