修复请求设置二维码状态无uuid问题
This commit is contained in:
parent
c7d3c7a24f
commit
5befe12ae6
|
|
@ -55,7 +55,7 @@ func ScanUUID(c *gin.Context) {
|
||||||
|
|
||||||
func SetQRStatus(c *gin.Context) {
|
func SetQRStatus(c *gin.Context) {
|
||||||
var qrsetReq QRReq
|
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")
|
res := worker.SetHashWithField(qrsetReq.UUID, "status", "1")
|
||||||
if res {
|
if res {
|
||||||
data := worker.GetHashAll(qrsetReq.UUID)
|
data := worker.GetHashAll(qrsetReq.UUID)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue