上传商店自动刷新机制
This commit is contained in:
parent
c5ee5ba57a
commit
6480d614d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user