diff --git a/modules/gm/module.go b/modules/gm/module.go index 121d1ecbc..67a35e743 100644 --- a/modules/gm/module.go +++ b/modules/gm/module.go @@ -75,7 +75,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er if keys[0] == "bingo" { this.Debugf("create CMD :%s", cmd) // 打印个日志方便查询 datas := strings.Split(keys[1], ",") - if len(datas) == 3 && (comm.TitleType == 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.AtlasType || datas[0] == comm.PandaType || datas[0] == comm.MountsType || datas[0] == comm.XxlType) { num, err := strconv.Atoi(datas[2]) diff --git a/modules/user/comp_configure.go b/modules/user/comp_configure.go index 27f92a973..a5bbead22 100644 --- a/modules/user/comp_configure.go +++ b/modules/user/comp_configure.go @@ -186,9 +186,13 @@ func (this *configureComp) GetPlayerOverview(id string, sex int32) (configure *c ) key = fmt.Sprintf("%s%d", id, sex) if configure, ok = this._pInforoverview[key]; !ok { - err = comm.NewNotFoundConfErr("用户模块", game_playerinfor_overview, key) - this.module.Errorf("err:%v", err) - return + key = fmt.Sprintf("%s%d", id, 0) + if configure, ok = this._pInforoverview[key]; !ok { + err = comm.NewNotFoundConfErr("用户模块", game_playerinfor_overview, key) + this.module.Errorf("err:%v", err) + return + } + } return }