From d0606fdb75ecdb9247f67f540116266ad9c527a2 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 30 Oct 2023 15:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=9A=AE=E8=82=A4=E8=B5=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/gm/module.go | 2 +- modules/user/comp_configure.go | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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 }