From cc964ebfbaa9376ca545e75f4414ecdb011178a6 Mon Sep 17 00:00:00 2001 From: JiebinHu <458249864@qq.com> Date: Sun, 27 Aug 2023 14:59:49 +0800 Subject: [PATCH] Update inner.go --- route/group_power_r/inner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/route/group_power_r/inner.go b/route/group_power_r/inner.go index 1feda46..77f9fca 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 } -- 2.22.0