From 7597569913c761312faf2b1b6288cdb3af288ce4 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 22 Nov 2022 15:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=85=B3=E5=8D=A1=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/arena/api_challenge.go | 1 + modules/arena/api_challengereward.go | 4 +++- modules/chat/api_send.go | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/arena/api_challenge.go b/modules/arena/api_challenge.go index 734934427..2e779d84b 100644 --- a/modules/arena/api_challenge.go +++ b/modules/arena/api_challenge.go @@ -38,6 +38,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.ArenaChallenge BlueCompId: record.BlueCompId, Buleflist: record.Buleflist, }}) + this.module.ModuleRtask.SendToRtask(session, comm.Rtype130, 1) } else { session.SendMsg(string(this.module.GetType()), "challenge", &pb.ArenaChallengeResp{Code: cd, Info: nil}) } diff --git a/modules/arena/api_challengereward.go b/modules/arena/api_challengereward.go index 419903c3c..7c27069e4 100644 --- a/modules/arena/api_challengereward.go +++ b/modules/arena/api_challengereward.go @@ -63,6 +63,7 @@ func (this *apiComp) ChallengeReward(session comm.IUserSession, req *pb.ArenaCha redstate = pb.BattleRecordState_AttackWin bulestate = pb.BattleRecordState_DefendLost } + this.module.ModuleRtask.SendToRtask(session, comm.Rtype131, 1) } else { if req.Revengeid != "" { redstate = pb.BattleRecordState_RevengeFailed @@ -223,6 +224,7 @@ func (this *apiComp) ChallengeReward(session comm.IUserSession, req *pb.ArenaCha code = pb.ErrorCode_DBError } } - + this.module.ModuleRtask.SendToRtask(session, comm.Rtype128, red.Integral) + this.module.ModuleRtask.SendToRtask(session, comm.Rtype129, red.Dan) return } diff --git a/modules/chat/api_send.go b/modules/chat/api_send.go index 071495d85..6fc29d3a5 100644 --- a/modules/chat/api_send.go +++ b/modules/chat/api_send.go @@ -125,6 +125,7 @@ func (this *apiComp) Send(session comm.IUserSession, req *pb.ChatSendReq) (code code = pb.ErrorCode_DBError return } + this.module.ModuleRtask.SendToRtask(session, comm.Rtype106, 1) break default: code = pb.ErrorCode_ReqParameterError