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()