新版仿ok交易所-后端
1
zyy
2026-03-24 513e5442723f501525bf9ca6210b16561e5d3a2b
trading-order-admin/src/main/java/com/yami/trading/admin/controller/user/UserDataController.java
@@ -87,22 +87,12 @@
        if (user == null) {
            throw new YamiShopBindException("参数错误!");
        }
//        if (Constants.SECURITY_ROLE_AGENT.equals(user.getRoleName())||Constants.SECURITY_ROLE_AGENTLOW.equals(user.getRoleName())) {
//               &&user!=null&&!Constants.SECURITY_ROLE_GUEST.equals(user.getRolename())) {
//            if(!Constants.SECURITY_ROLE_GUEST.equals(user.getRoleName())) {
//                throw new YamiShopBindException("只能修改演示账户");
//            }
//            List<String> children = userRecomService.findChildren(sec.getPartyId());
//            if(!children.contains(partyId)) {
//                throw new YamiShopBindException("只能修改自己线下的用户演示账户");
//
//            }
//          }
        user.setEnabled(model.isEnabled());
        user.setRemarks(model.getRemarks());
        user.setStatus(model.isLoginAuthority()?1:0);
        user.setWithdrawAuthority(model.isWithdrawAuthority());
        user.setStatus(model.isLoginAuthority() ? 1 : 0);
        user.setCreditScore(model.getCreditScore());
        userService.updateById(user);
        return Result.ok(null);
    }