|
|
@ -212,7 +212,7 @@ func RemoveUserIPLimitLogin(c *gin.Context) {
|
|
|
|
if len(ips) == 0 {
|
|
|
|
if len(ips) == 0 {
|
|
|
|
err := imdb.UpdateUserInfoByMap(db.User{
|
|
|
|
err := imdb.UpdateUserInfoByMap(db.User{
|
|
|
|
UserID: req.UserID,
|
|
|
|
UserID: req.UserID,
|
|
|
|
}, map[string]interface{}{"limit_login": 0})
|
|
|
|
}, map[string]interface{}{"login_limit": 0})
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error(), req.UserID)
|
|
|
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error(), req.UserID)
|
|
|
|
c.JSON(http.StatusInternalServerError, gin.H{"errCode": constant.ErrDB, "errMsg": "UpdateUserInfo error!"})
|
|
|
|
c.JSON(http.StatusInternalServerError, gin.H{"errCode": constant.ErrDB, "errMsg": "UpdateUserInfo error!"})
|
|
|
|