From 38aeb3fbc36dab9a8e9ffbbae33097ee9990980d Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 25 Aug 2023 21:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=86=E5=85=B8=E6=B4=BB=E5=8A=A8=E4=BB=BB?= =?UTF-8?q?=E6=84=8Fboss=20=E8=AE=A1=E7=AE=97=E6=AC=A1=E6=95=B0=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/activity/module.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/activity/module.go b/modules/activity/module.go index 778c7ad18..a485d5a39 100644 --- a/modules/activity/module.go +++ b/modules/activity/module.go @@ -287,7 +287,12 @@ func (this *Activity) HDCelebration(session comm.IUserSession, systemtype int32, } if conf, err := this.configure.GetHDCelebration(data.Val); err == nil { - + for _, v1 := range conf.Bosstype { + if v1 == 0 { // bosstype 为0 表示所有的boss 类型都算 + bosstype = 0 + break + } + } if conf.Systemtype == systemtype { data.Gotarr[bosstype] += 1 // 天数