新版仿ok交易所-后端
1
zj
2025-09-20 632e1b1eb8b1e088163edd765420934ed2940fde
trading-order-admin/src/main/java/com/yami/trading/admin/controller/AdminLoginController.java
@@ -140,12 +140,13 @@
            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) {