上传商店配置
This commit is contained in:
parent
45f198f561
commit
1a817d452b
@ -1163,7 +1163,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": 37,
|
"key": 37,
|
||||||
"id": 20020,
|
"id": 20010,
|
||||||
"iteminfo": [
|
"iteminfo": [
|
||||||
{
|
{
|
||||||
"a": "item",
|
"a": "item",
|
||||||
|
@ -2,6 +2,7 @@ package shop
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
cfg "go_dreamfactory/sys/configure/structs"
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
"time"
|
"time"
|
||||||
@ -131,6 +132,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
var _items []*cfg.GameShopitemData
|
var _items []*cfg.GameShopitemData
|
||||||
for _, v := range shopconf.Shopitem {
|
for _, v := range shopconf.Shopitem {
|
||||||
if _items, err = this.module.configure.GetShopItemsConfigureByGroups(v, udata); err != nil || len(_items) == 0 {
|
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
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ func (this *configureComp) GetShopItemsConfigureByGroups(groupid int32, user *pb
|
|||||||
if v.Id == groupid &&
|
if v.Id == groupid &&
|
||||||
user.Lv >= v.Lvmin &&
|
user.Lv >= v.Lvmin &&
|
||||||
user.Lv <= v.Lvmax &&
|
user.Lv <= v.Lvmax &&
|
||||||
v.Vip >= v.Vip {
|
user.Vip >= v.Vip {
|
||||||
result = append(result, v)
|
result = append(result, v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user