Merge branch 'del' of github.com:OpenIMSDK/Open-IM-Server into del

This commit is contained in:
wangchuxiao
2022-08-15 18:59:52 +08:00
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -133,8 +133,12 @@ func QueryUserIPLimitLogin(c *gin.Context) {
c.JSON(http.StatusInternalServerError, gin.H{"errCode": constant.ErrDB.ErrCode, "errMsg": "GetIpLimitsByUserID error!"})
return
}
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp:", resp)
c.JSON(http.StatusOK, gin.H{"errCode": 0, "errMsg": "", "data": resp})
if len(resp) > 0 {
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp:", resp)
c.JSON(http.StatusOK, gin.H{"errCode": 0, "errMsg": "", "data": resp})
return
}
c.JSON(http.StatusOK, gin.H{"errCode": 0, "errMsg": "", "data": "[]"})
}
type AddUserIPLimitLoginReq struct {