上传商店刷新代码
This commit is contained in:
parent
aa1794627d
commit
22a1757044
@ -184,7 +184,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
||||
sdata.LastRefreshTime = configure.Now().Add(time.Hour * time.Duration(shopconf.Rtime)).Unix()
|
||||
break
|
||||
case 2:
|
||||
sdata.LastRefreshTime = utils.GetTodayZeroTime(configure.Now().Unix())
|
||||
sdata.LastRefreshTime = utils.GetZeroTime(configure.Now().Unix())
|
||||
break
|
||||
case 3:
|
||||
sdata.LastRefreshTime = utils.WeekIntervalTime(configure.Now().Unix())
|
||||
|
@ -127,7 +127,8 @@ func TestWeekIntervalTime(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetZeroTime(t *testing.T) {
|
||||
ti := utils.GetMonthEnd(time.Now().Unix())
|
||||
ti := utils.GetZeroTime(time.Now().Unix())
|
||||
fmt.Println(ti)
|
||||
format := "2006-01-02 15:04:05"
|
||||
formattedTime := time.Unix(ti, 0).Format(format)
|
||||
fmt.Println(formattedTime)
|
||||
|
Loading…
Reference in New Issue
Block a user