上传商店刷新时间
This commit is contained in:
parent
32682eb3fc
commit
56effb8640
@ -179,7 +179,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
//重新计算刷新时间点
|
//重新计算刷新时间点
|
||||||
switch shopconf.Rtype {
|
switch shopconf.Rtype {
|
||||||
case -1: //一百年不刷新
|
case -1: //一百年不刷新
|
||||||
sdata.LastRefreshTime = -1
|
sdata.LastRefreshTime = 0
|
||||||
case 1:
|
case 1:
|
||||||
sdata.LastRefreshTime = configure.Now().Add(time.Hour * time.Duration(shopconf.Rtime)).Unix()
|
sdata.LastRefreshTime = configure.Now().Add(time.Hour * time.Duration(shopconf.Rtime)).Unix()
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user