From 2e4c2f801eb022f241e54609e87fa8101f3d8e7c Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sun, 18 May 2025 11:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E7=99=BB=E5=BD=95=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E9=94=80=E6=AF=81=E8=AE=A4=E8=AF=81=E4=BF=A1=E6=81=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/user.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }