上传商店和共鸣水晶

This commit is contained in:
liwei 2023-07-13 10:02:10 +08:00
parent 48de8a84f9
commit 7698142adf
6 changed files with 15 additions and 18 deletions

View File

@ -77,7 +77,7 @@ func (this *apiComp) InRoom(session comm.IUserSession, req *pb.PassonInRoomReq)
return
}
if hero.Lv >= passon.Passonlv {
if hero.Lv > passon.Passonlv {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),

View File

@ -131,5 +131,4 @@ func (this *Passon) HeroUpLv(session comm.IUserSession, heroid string, lv int32)
this.Errorln(err)
return
}
}

View File

@ -53,6 +53,7 @@ func (this *modelQiecuo) endQiecuo(uid string) (result *pb.DBPracticeQiecuoRecor
result = &pb.DBPracticeQiecuoRecord{}
if err = this.Get(uid, result); err != nil {
this.module.Errorln(err)
return
}
this.Change(uid, map[string]interface{}{
"status": 0,

View File

@ -111,6 +111,8 @@ func (this *configureComp) GetShopItemsConfigureByIds(keys ...int32) (result []*
result = append(result, item)
} else {
this.module.Errorf("no found GetShopItemsConfigureByIds:%d", v)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_shopitem, v)
return
}
}
}

View File

@ -33,12 +33,7 @@ func randomGoods(goods []*cfg.GameShopitemData) (result *cfg.GameShopitemData) {
// 转换商品对象
func transGoods(goods []*cfg.GameShopitemData, sdata *pb.UserShopData) (result []*pb.ShopItem) {
result = make([]*pb.ShopItem, len(goods))
// ok := false
// uitem := &pb.DBShopItem{}
for i, v := range goods {
// if uitem, ok = ushoputem[v.Key]; !ok {
// uitem = &pb.DBShopItem{}
// }
result[i] = &pb.ShopItem{
Gid: sdata.Items[i].Id,
GoodsId: v.Key,