package realarena import ( "go_dreamfactory/comm" "go_dreamfactory/pb" ) // 参数校验 func (this *apiComp) MatchCheck(session comm.IUserSession, req *pb.ReddotGetReq) (errdata *pb.ErrorData) { return } //匹配 func (this *apiComp) Match(session comm.IUserSession, req *pb.RealArenaMatchReq) (errdata *pb.ErrorData) { var ( info *pb.DBRealArena err error ) if info, err = this.module.model.getinfo(session); err != nil { errdata = &pb.ErrorData{ Code: pb.ErrorCode_ReqParameterError, Message: err.Error(), } return } if err = this.module.match.MatchReq(info); err != nil { errdata = &pb.ErrorData{ Code: pb.ErrorCode_SystemError, Message: err.Error(), } return } session.SendMsg(string(this.module.GetType()), "match", &pb.RealArenaInfoResp{}) return }