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 }