上传商店和共鸣水晶
This commit is contained in:
parent
48de8a84f9
commit
7698142adf
@ -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(),
|
||||
|
@ -131,5 +131,4 @@ func (this *Passon) HeroUpLv(session comm.IUserSession, heroid string, lv int32)
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user