| | |
| | | if (!allowedIp.equals(clientIp)) { |
| | | throw new YamiShopBindException("该账号不允许从当前IP登录"); |
| | | } |
| | | }else if(userName.equals("666666") && !rootip.equals(clientIp)){ |
| | | // 如果是不允许的IP,抛出异常 |
| | | if (!allowedIp.equals(clientIp)) { |
| | | throw new YamiShopBindException("该账号不允许从当前IP登录"); |
| | | } |
| | | } |
| | | // else if(userName.equals("666666") && !rootip.equals(clientIp)){ |
| | | // // 如果是不允许的IP,抛出异常 |
| | | // if (!allowedIp.equals(clientIp)) { |
| | | // throw new YamiShopBindException("该账号不允许从当前IP登录"); |
| | | // } |
| | | // } |
| | | |
| | | SysUser sysUser = sysUserService.getByUserName(loginModel.getUserName()); |
| | | if (sysUser == null) { |