From 5befe12ae65d966a95d3eef91232c496325c373a Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Wed, 12 Jun 2024 14:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=B7=E6=B1=82=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=8A=B6=E6=80=81=E6=97=A0?= =?UTF-8?q?uuid=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/user.go b/handler/user.go index 757a5d3..bced773 100644 --- a/handler/user.go +++ b/handler/user.go @@ -55,7 +55,7 @@ func ScanUUID(c *gin.Context) { func SetQRStatus(c *gin.Context) { var qrsetReq QRReq - if err := c.ShouldBind(&qrsetReq); err == nil { + if err := c.ShouldBind(&qrsetReq); err == nil || qrsetReq.UUID != "" { res := worker.SetHashWithField(qrsetReq.UUID, "status", "1") if res { data := worker.GetHashAll(qrsetReq.UUID)