上传商店自动刷新机制

This commit is contained in:
liwei1dao 2023-11-15 10:01:07 +08:00
parent c5ee5ba57a
commit 6480d614d7

View File

@ -83,6 +83,8 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
tdata = configure.Now().Sub((time.Unix(sdata.LastRefreshTime, 0)))
switch shopconf.Rtype {
case -1:
ltime = 365 * 100 * 24 * time.Hour * time.Duration(shopconf.Rtime)
case 1:
ltime = time.Hour * time.Duration(shopconf.Rtime)
break