From 1a817d452bdb08eecec032d929c1ceffad805ddf Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 23 Sep 2022 11:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=95=86=E5=BA=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_shopitem.json | 2 +- modules/shop/api_getlist.go | 2 ++ modules/shop/configure.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/json/game_shopitem.json b/bin/json/game_shopitem.json index 9d6ae109d..7c2934475 100644 --- a/bin/json/game_shopitem.json +++ b/bin/json/game_shopitem.json @@ -1163,7 +1163,7 @@ }, { "key": 37, - "id": 20020, + "id": 20010, "iteminfo": [ { "a": "item", diff --git a/modules/shop/api_getlist.go b/modules/shop/api_getlist.go index 2140279c3..29b18ff18 100644 --- a/modules/shop/api_getlist.go +++ b/modules/shop/api_getlist.go @@ -2,6 +2,7 @@ package shop import ( "go_dreamfactory/comm" + "go_dreamfactory/lego/sys/log" "go_dreamfactory/pb" cfg "go_dreamfactory/sys/configure/structs" "time" @@ -131,6 +132,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq) var _items []*cfg.GameShopitemData for _, v := range shopconf.Shopitem { if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 { + this.module.Error("no founf shopgroup", log.Field{Key: "gid", Value: v}) code = pb.ErrorCode_SystemError return } diff --git a/modules/shop/configure.go b/modules/shop/configure.go index 9048f6731..be5f17345 100644 --- a/modules/shop/configure.go +++ b/modules/shop/configure.go @@ -82,7 +82,7 @@ func (this *configureComp) GetShopItemsConfigureByGroups(groupid int32, user *pb if v.Id == groupid && user.Lv >= v.Lvmin && user.Lv <= v.Lvmax && - v.Vip >= v.Vip { + user.Vip >= v.Vip { result = append(result, v) } }