diff --git a/internal/demo/register/ip_limit.go b/internal/demo/register/ip_limit.go index 36fcf753e..17a53795d 100644 --- a/internal/demo/register/ip_limit.go +++ b/internal/demo/register/ip_limit.go @@ -212,7 +212,7 @@ func RemoveUserIPLimitLogin(c *gin.Context) { if len(ips) == 0 { err := imdb.UpdateUserInfoByMap(db.User{ UserID: req.UserID, - }, map[string]interface{}{"limit_login": 0}) + }, map[string]interface{}{"login_limit": 0}) if err != nil { log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error(), req.UserID) c.JSON(http.StatusInternalServerError, gin.H{"errCode": constant.ErrDB, "errMsg": "UpdateUserInfo error!"})