修复请求设置二维码状态无uuid问题

This commit is contained in:
junleea 2024-06-12 14:44:53 +08:00
parent c7d3c7a24f
commit 5befe12ae6
1 changed files with 1 additions and 1 deletions

View File

@ -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)