Sfoglia il codice sorgente

update egg score

tmp
shenjiachi 3 settimane fa
parent
commit
b78e9cb849
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +4
    -2
      app/svc/svc_points_center.go

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

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


Caricamento…
Annulla
Salva