diff --git a/handler/user.go b/handler/user.go index 9ea76f3..368779b 100644 --- a/handler/user.go +++ b/handler/user.go @@ -623,10 +623,12 @@ func LoginOAuth(c *gin.Context) { c.JSON(200, resp) return } + if status.Status == 0 { + worker.DelRedis(uuid) //删除uuid,只能查一次 + } resp.Code = proto.SuccessCode resp.Message = "success" resp.Data = status - worker.DelRedis(uuid) //删除uuid,只能查一次 c.JSON(200, resp) }