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