From 0ca2665cb4bfe3bd7408acdc4ceac25c5f0297cf Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 28 Feb 2024 09:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=93=E5=B1=9E=E6=AD=A6?= =?UTF-8?q?=E5=99=A8=E8=B5=84=E6=BA=90=E5=8F=91=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/gm/module.go | 4 ++-- modules/modulebase.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/gm/module.go b/modules/gm/module.go index 82ce5c5b6..6952feabb 100644 --- a/modules/gm/module.go +++ b/modules/gm/module.go @@ -77,7 +77,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er datas := strings.Split(keys[1], ",") if len(datas) == 3 && (comm.TitleType == datas[0] || comm.PerType == datas[0] || datas[0] == comm.AttrType || datas[0] == comm.ItemType || datas[0] == comm.HeroType || datas[0] == comm.EquipmentType || datas[0] == comm.VipType || - datas[0] == comm.AtlasType || datas[0] == comm.PandaType || datas[0] == comm.MountsType || datas[0] == comm.XxlSkill || datas[0] == comm.XxlType) { + datas[0] == comm.AtlasType || datas[0] == comm.PandaType || datas[0] == comm.MountsType || datas[0] == comm.XxlSkill || datas[0] == comm.XxlType || datas[0] == comm.ExclusiveType) { num, err := strconv.Atoi(datas[2]) if err != nil { errdata = &pb.ErrorData{ @@ -86,7 +86,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er } return } - errdata = this.DispenseRes(session, []*cfg.Gameatn{ // 添加资源 + errdata, _ = this.DispenseAtno(session, []*cfg.Gameatn{ // 添加资源 { A: datas[0], T: datas[1], diff --git a/modules/modulebase.go b/modules/modulebase.go index f71284fd2..008b7c531 100644 --- a/modules/modulebase.go +++ b/modules/modulebase.go @@ -167,6 +167,10 @@ func (this *ModuleBase) Start() (err error) { return } this.ModuleEntertain = module.(comm.IEntertainment) + if module, err = this.service.GetModule(comm.ModuleExclusive); err != nil { + return + } + this.ModuleExclusive = module.(comm.IExclusive) return }