上传商店刷新机制

This commit is contained in:
liwei1dao 2023-11-15 10:03:26 +08:00
parent 6480d614d7
commit 13ba664013

View File

@ -83,7 +83,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
tdata = configure.Now().Sub((time.Unix(sdata.LastRefreshTime, 0))) tdata = configure.Now().Sub((time.Unix(sdata.LastRefreshTime, 0)))
switch shopconf.Rtype { switch shopconf.Rtype {
case -1: case -1: //一百年不刷新
ltime = 365 * 100 * 24 * time.Hour * time.Duration(shopconf.Rtime) ltime = 365 * 100 * 24 * time.Hour * time.Duration(shopconf.Rtime)
case 1: case 1:
ltime = time.Hour * time.Duration(shopconf.Rtime) ltime = time.Hour * time.Duration(shopconf.Rtime)