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 }