上传补羊成龙过滤代码

This commit is contained in:
liwei1dao 2023-11-07 15:27:07 +08:00
parent dc26824e27
commit 6714d58b57
2 changed files with 11 additions and 2 deletions

View File

@ -44,7 +44,7 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ParkourInfoReq) (er
return
}
if info.Defmts == "" { //没有默认坐骑
if dragons, err = this.module.dragon.GetDragonList(session.GetUserId()); err != nil {
if dragons, err = this.module.dragon.QueryBigDragonList(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
@ -81,7 +81,6 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ParkourInfoReq) (er
update["property"] = info.Property
update["mount"] = info.Mount
update["mlv"] = info.Mlv
}
if !utils.IsSameWeek(info.Weektime) {

View File

@ -28,6 +28,16 @@ func (this *apiComp) RaceMatch(session comm.IUserSession, req *pb.ParkourRaceMat
}
return
}
if info.Defmts == "" { //没有默认坐骑
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
Message: "no Defmts!",
}
return
}
info.State = pb.RaceTeamState_teaming
if req.Rtype == pb.RaceType_ordinary {
if err = this.module.matchTrain.MatchReq(&pb.DBMatchPlayer{