上传专属武器资源发放
This commit is contained in:
parent
6a4aa77ef2
commit
0ca2665cb4
@ -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],
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user