上传商店列表刷新问题
This commit is contained in:
parent
f1fad4f96e
commit
be53d80523
@ -150,6 +150,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
if tdata > ltime { //达到刷新时间 可以刷新商品列表
|
if tdata > ltime { //达到刷新时间 可以刷新商品列表
|
||||||
isrefresh = true
|
isrefresh = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if isrefresh {
|
if isrefresh {
|
||||||
var _items []*cfg.GameShopitemData
|
var _items []*cfg.GameShopitemData
|
||||||
for _, v := range shopconf.Shopitem {
|
for _, v := range shopconf.Shopitem {
|
||||||
@ -182,8 +183,6 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
}
|
}
|
||||||
goods = transGoods(items, sdata)
|
goods = transGoods(items, sdata)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user