From c6b669eb9d2530b2cb7e66b77d2c75057f06b2c8 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 15 Aug 2022 20:09:02 +0800 Subject: [PATCH] fix code --- internal/demo/register/ip_limit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/demo/register/ip_limit.go b/internal/demo/register/ip_limit.go index c63bbcfb0..4908a2ca8 100644 --- a/internal/demo/register/ip_limit.go +++ b/internal/demo/register/ip_limit.go @@ -47,6 +47,7 @@ func QueryIPRegister(c *gin.Context) { c.JSON(http.StatusInternalServerError, gin.H{"errCode": constant.ErrDB.ErrCode, "errMsg": "QueryIPLimits error!"}) return } + if ipLimits.Ip != "" { resp.Status = 1 }