diff --git a/handler/user.go b/handler/user.go index 0c3fa1a..c5ae2a7 100644 --- a/handler/user.go +++ b/handler/user.go @@ -560,10 +560,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) }