上传关卡结算问题

This commit is contained in:
liwei1dao 2022-11-22 15:46:37 +08:00
parent 455d4af07e
commit 7597569913
3 changed files with 5 additions and 1 deletions

View File

@ -38,6 +38,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.ArenaChallenge
BlueCompId: record.BlueCompId, BlueCompId: record.BlueCompId,
Buleflist: record.Buleflist, Buleflist: record.Buleflist,
}}) }})
this.module.ModuleRtask.SendToRtask(session, comm.Rtype130, 1)
} else { } else {
session.SendMsg(string(this.module.GetType()), "challenge", &pb.ArenaChallengeResp{Code: cd, Info: nil}) session.SendMsg(string(this.module.GetType()), "challenge", &pb.ArenaChallengeResp{Code: cd, Info: nil})
} }

View File

@ -63,6 +63,7 @@ func (this *apiComp) ChallengeReward(session comm.IUserSession, req *pb.ArenaCha
redstate = pb.BattleRecordState_AttackWin redstate = pb.BattleRecordState_AttackWin
bulestate = pb.BattleRecordState_DefendLost bulestate = pb.BattleRecordState_DefendLost
} }
this.module.ModuleRtask.SendToRtask(session, comm.Rtype131, 1)
} else { } else {
if req.Revengeid != "" { if req.Revengeid != "" {
redstate = pb.BattleRecordState_RevengeFailed redstate = pb.BattleRecordState_RevengeFailed
@ -223,6 +224,7 @@ func (this *apiComp) ChallengeReward(session comm.IUserSession, req *pb.ArenaCha
code = pb.ErrorCode_DBError code = pb.ErrorCode_DBError
} }
} }
this.module.ModuleRtask.SendToRtask(session, comm.Rtype128, red.Integral)
this.module.ModuleRtask.SendToRtask(session, comm.Rtype129, red.Dan)
return return
} }

View File

@ -125,6 +125,7 @@ func (this *apiComp) Send(session comm.IUserSession, req *pb.ChatSendReq) (code
code = pb.ErrorCode_DBError code = pb.ErrorCode_DBError
return return
} }
this.module.ModuleRtask.SendToRtask(session, comm.Rtype106, 1)
break break
default: default:
code = pb.ErrorCode_ReqParameterError code = pb.ErrorCode_ReqParameterError