上传皮肤资源

This commit is contained in:
liwei1dao 2023-10-30 15:28:19 +08:00
parent 4f92e94968
commit d0606fdb75
2 changed files with 8 additions and 4 deletions

View File

@ -75,7 +75,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
if keys[0] == "bingo" { if keys[0] == "bingo" {
this.Debugf("create CMD :%s", cmd) // 打印个日志方便查询 this.Debugf("create CMD :%s", cmd) // 打印个日志方便查询
datas := strings.Split(keys[1], ",") 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.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) { datas[0] == comm.AtlasType || datas[0] == comm.PandaType || datas[0] == comm.MountsType || datas[0] == comm.XxlType) {
num, err := strconv.Atoi(datas[2]) num, err := strconv.Atoi(datas[2])

View File

@ -186,9 +186,13 @@ func (this *configureComp) GetPlayerOverview(id string, sex int32) (configure *c
) )
key = fmt.Sprintf("%s%d", id, sex) key = fmt.Sprintf("%s%d", id, sex)
if configure, ok = this._pInforoverview[key]; !ok { if configure, ok = this._pInforoverview[key]; !ok {
err = comm.NewNotFoundConfErr("用户模块", game_playerinfor_overview, key) key = fmt.Sprintf("%s%d", id, 0)
this.module.Errorf("err:%v", err) if configure, ok = this._pInforoverview[key]; !ok {
return err = comm.NewNotFoundConfErr("用户模块", game_playerinfor_overview, key)
this.module.Errorf("err:%v", err)
return
}
} }
return return
} }