|
@@ -92,9 +92,11 @@ func GetEggPointRecordBase(now time.Time, uid int64, page int, limit int) ([]md. |
|
|
for i := 0; i < limit; i++ { |
|
|
for i := 0; i < limit; i++ { |
|
|
var tempDays int |
|
|
var tempDays int |
|
|
if getLastWeek { |
|
|
if getLastWeek { |
|
|
tempDays = 7 * ((page-1)*limit + i + 1) |
|
|
|
|
|
|
|
|
// 未到周三下午两点,从上上周开始查询 |
|
|
|
|
|
tempDays = 7 * ((page-1)*limit + i + 2) |
|
|
} else { |
|
|
} else { |
|
|
tempDays = 7 * ((page-1)*limit + i) |
|
|
|
|
|
|
|
|
// 已过周三下午两点,从上周开始查询 |
|
|
|
|
|
tempDays = 7 * ((page-1)*limit + i + 1) |
|
|
} |
|
|
} |
|
|
tempTime := now.AddDate(0, 0, -tempDays) |
|
|
tempTime := now.AddDate(0, 0, -tempDays) |
|
|
tempYear, tempWeek := tempTime.ISOWeek() |
|
|
tempYear, tempWeek := tempTime.ISOWeek() |
|
|