代码调整
This commit is contained in:
@@ -450,6 +450,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|||||||
*/
|
*/
|
||||||
private void judgeIp(@NotNull User user, UserStrategy userStrategy) {
|
private void judgeIp(@NotNull User user, UserStrategy userStrategy) {
|
||||||
String ipSection = user.getLimitIpStart() + "-" + user.getLimitIpEnd();
|
String ipSection = user.getLimitIpStart() + "-" + user.getLimitIpEnd();
|
||||||
|
log.error("用户实际ip:"+RequestUtil.getRealIp());
|
||||||
|
log.error("用户限制ip:"+ipSection);
|
||||||
if (RequestUtil.getRealIp().equalsIgnoreCase(LogInfo.UNKNOWN_IP)) {
|
if (RequestUtil.getRealIp().equalsIgnoreCase(LogInfo.UNKNOWN_IP)) {
|
||||||
//feign接口可能获取的IP是空的
|
//feign接口可能获取的IP是空的
|
||||||
throw new BusinessException(UserResponseEnum.INVALID_IP);
|
throw new BusinessException(UserResponseEnum.INVALID_IP);
|
||||||
|
|||||||
Reference in New Issue
Block a user