上传专属武器资源发放

This commit is contained in:
liwei1dao 2024-02-28 09:52:24 +08:00
parent 6a4aa77ef2
commit 0ca2665cb4
2 changed files with 6 additions and 2 deletions

View File

@ -77,7 +77,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
datas := strings.Split(keys[1], ",") 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 || 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.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]) num, err := strconv.Atoi(datas[2])
if err != nil { if err != nil {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
@ -86,7 +86,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
} }
return return
} }
errdata = this.DispenseRes(session, []*cfg.Gameatn{ // 添加资源 errdata, _ = this.DispenseAtno(session, []*cfg.Gameatn{ // 添加资源
{ {
A: datas[0], A: datas[0],
T: datas[1], T: datas[1],

View File

@ -167,6 +167,10 @@ func (this *ModuleBase) Start() (err error) {
return return
} }
this.ModuleEntertain = module.(comm.IEntertainment) this.ModuleEntertain = module.(comm.IEntertainment)
if module, err = this.service.GetModule(comm.ModuleExclusive); err != nil {
return
}
this.ModuleExclusive = module.(comm.IExclusive)
return return
} }