Browse Source

update egg score

tmp
shenjiachi 3 weeks ago
parent
commit
b78e9cb849
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      app/svc/svc_points_center.go

+ 4
- 2
app/svc/svc_points_center.go View File

@@ -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()


Loading…
Cancel
Save