上传商店列表刷新问题

This commit is contained in:
liwei1dao 2023-01-13 10:20:45 +08:00
parent f1fad4f96e
commit be53d80523

View File

@ -150,6 +150,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
if tdata > ltime { //达到刷新时间 可以刷新商品列表
isrefresh = true
}
}
if isrefresh {
var _items []*cfg.GameShopitemData
for _, v := range shopconf.Shopitem {
@ -182,8 +183,6 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
}
goods = transGoods(items, sdata)
}
}
} else {
code = pb.ErrorCode_ReqParameterError
return