Commit cc964ebf authored by JiebinHu's avatar JiebinHu

Update inner.go

parent 9068f714
......@@ -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
}
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