|
|
@@ -132,12 +132,12 @@ func GetActiveData(c *gin.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
activityDb := implement.NewEggEnergyUserActivityDb(db.Db) |
|
|
|
todayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(todayStartAt, todayEndAt) |
|
|
|
todayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(nowStr, nowStr) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
yesterdayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(yesterdayStartAt, yesterdayEndAt) |
|
|
|
yesterdayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(yesterdayStr, yesterdayStr) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|