diff --git a/route/group_power_r/inner.go b/route/group_power_r/inner.go index 1feda4692d7c3e866e5c77c40ab40b27872c44b7..77f9fca42767c2b54c5c529d7e49b90a9cf5f555 100644 --- a/route/group_power_r/inner.go +++ b/route/group_power_r/inner.go @@ -113,6 +113,7 @@ type GroupPowerDayStar struct { // @Router /inner/groupPower/sync/star [get] func SyncStar(c *gin.Context) (*mycontext.MyContext, error) { myCtx := mycontext.CreateMyContext(c.Keys) + t := time.Now() start := c.Query("start") end := c.Query("end") if len(start) <= 0 || len(end) <= 0 { @@ -153,5 +154,6 @@ func SyncStar(c *gin.Context) (*mycontext.MyContext, error) { model.RedisCluster.Expire(model, key, ttl[period]) } } + resp.ResponseOk(c, time.Now().Sub(t).Seconds()) return myCtx, nil }