办学质量监测教学评价系统
ageerle
2025-04-21 69efc3261e6f6e4dca268fb2de9866d8f2a14952
ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysRegisterService.java
@@ -37,7 +37,7 @@
    private final SysUserRoleMapper userRoleMapper;
    private final ConfigService configService;
   // private final ConfigService configService;
    /**
     * 注册
     */
@@ -61,12 +61,9 @@
        if (!userService.checkUserNameUnique(sysUser)) {
            throw new UserException("添加用户失败", username);
        }
        String configValue = configService.getConfigValue("mail", "amount");
        // String configValue = configService.getConfigValue("mail", "amount");
        // 设置默认余额
        sysUser.setUserBalance(NumberUtils.toDouble(configValue,1));
        sysUser.setUserBalance(NumberUtils.toDouble("configValue",1));
        SysUser user = userService.registerUser(sysUser, tenantId);
        if (user == null) {
            throw new UserException("用户注册失败!");