Commit cc964ebf authored by JiebinHu's avatar JiebinHu

Update inner.go

parent 9068f714
...@@ -113,6 +113,7 @@ type GroupPowerDayStar struct { ...@@ -113,6 +113,7 @@ type GroupPowerDayStar struct {
// @Router /inner/groupPower/sync/star [get] // @Router /inner/groupPower/sync/star [get]
func SyncStar(c *gin.Context) (*mycontext.MyContext, error) { func SyncStar(c *gin.Context) (*mycontext.MyContext, error) {
myCtx := mycontext.CreateMyContext(c.Keys) myCtx := mycontext.CreateMyContext(c.Keys)
t := time.Now()
start := c.Query("start") start := c.Query("start")
end := c.Query("end") end := c.Query("end")
if len(start) <= 0 || len(end) <= 0 { if len(start) <= 0 || len(end) <= 0 {
...@@ -153,5 +154,6 @@ func SyncStar(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -153,5 +154,6 @@ func SyncStar(c *gin.Context) (*mycontext.MyContext, error) {
model.RedisCluster.Expire(model, key, ttl[period]) model.RedisCluster.Expire(model, key, ttl[period])
} }
} }
resp.ResponseOk(c, time.Now().Sub(t).Seconds())
return myCtx, nil return myCtx, nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment