From 6337ba17dd33f26177f10da43b951e91e75f0b99 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 16 Sep 2022 15:30:15 +0800 Subject: [PATCH] =?UTF-8?q?boss=20=E5=85=B3=E5=8D=A1=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 1 + modules/mainline/api_challengeover.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/comm/const.go b/comm/const.go index 431b12222..a7ff56e81 100644 --- a/comm/const.go +++ b/comm/const.go @@ -332,6 +332,7 @@ const ( const ( MaxMainlineIntensity = 3 // 最大难度 MaxRankNum = 3 + MainLineBoss = 3 ) ///聊天消息公告类型 diff --git a/modules/mainline/api_challengeover.go b/modules/mainline/api_challengeover.go index c773d1f0e..9f55cd5ce 100644 --- a/modules/mainline/api_challengeover.go +++ b/modules/mainline/api_challengeover.go @@ -61,7 +61,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh "chapterId": mainline.ChapterId, "branchID": mainline.BranchID, } - if node.Episodetype == 5 { // 打完boss 设置领奖状态 + if node.Episodetype == comm.MainLineBoss { // 打完boss 设置领奖状态 update["awaredID"] = pb.AwaredType_TypeAvailable mainline.AwaredID = pb.AwaredType_TypeAvailable } @@ -71,7 +71,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh return } - if node.Episodetype == 5 { // 挑战完成 boss关 + if node.Episodetype == comm.MainLineBoss { // 挑战完成 boss关 _data := &pb.DBMainline{} conf := this.module.configure.GetMainlineChapter(mainline.ChapterId + 1) _data.Id = primitive.NewObjectID().Hex()