fix: 修改部分缺陷

This commit is contained in:
bunny 2024-10-25 10:44:48 +08:00
parent 08ce9caa60
commit 77334e3357
6 changed files with 14 additions and 8 deletions

View File

@ -25,19 +25,20 @@ Gitee地址
### Docker配置 ### Docker配置
配置的端口号是8000根据自己需求进行更改 配置的端口号是8000根据自己需求进行更改,当然这些配置都可以修改,但是`"/www/root/server"`这个不能改,除非不需要动态修改配置文件
- 如果需要访问内部docker或者有这种需求访问宿主机docker需要配置下面三个文件这三个文件需要对应你的宿主机上的位置下面展示的三个是服务容器中的地址之后需要使用docker命令绑定映射这个文件夹位置即可。 - 如果需要访问内部docker或者有这种需求访问宿主机docker需要配置下面三个文件这三个文件需要对应你的宿主机上的位置下面展示的三个是服务容器中的地址之后需要使用docker命令绑定映射这个文件夹位置即可。
``` dockerfile ``` dockerfile
VOLUME /usr/bin/docker VOLUME /usr/bin/docker
VOLUME ["/var/run/docker.sock"] VOLUME ["/var/run/docker.sock"]
VOLUME /etc/docker/daemon.json VOLUME /etc/docker/daemon.json
VOLUME ["/www/root/backup"]
VOLUME ["/www/root/server"]
``` ```
- 备份资源和基础路径设置 - 备份资源和基础路径设置,如果是需要备份数据库,比如你的数据库就在本机那么可以使用这个文件夹,之后需要映射这个数据卷
- 备份资源如果是需要备份数据库,比如你的数据库就在本机那么可以使用这个文件夹,之后需要映射这个数据卷
```dockerfile ```dockerfile
VOLUME ["/www/root/backup"] VOLUME ["/www/root/backup"]

View File

@ -187,4 +187,5 @@
</properties> </properties>
</profile> </profile>
</profiles> </profiles>
</project> </project>

View File

@ -201,6 +201,9 @@ public class RouterServiceImpl extends ServiceImpl<RouterMapper, Router> impleme
// 判断更新数据id和父级id是否重复 // 判断更新数据id和父级id是否重复
if (dto.getId().equals(dto.getParentId())) throw new BunnyException(ResultCodeEnum.ILLEGAL_DATA_REQUEST); if (dto.getId().equals(dto.getParentId())) throw new BunnyException(ResultCodeEnum.ILLEGAL_DATA_REQUEST);
// 如果设置的不是外部页面
if (!dto.getMenuType().equals(2)) router.setFrameSrc("");
router = new Router(); router = new Router();
BeanUtils.copyProperties(dto, router); BeanUtils.copyProperties(dto, router);
updateById(router); updateById(router);

View File

@ -46,6 +46,7 @@ import org.springframework.web.multipart.MultipartFile;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit;
/** /**
@ -84,7 +85,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, AdminUser> implemen
@Autowired @Autowired
private EmailTemplateMapper emailTemplateMapper; private EmailTemplateMapper emailTemplateMapper;
@Autowired @Autowired
private RoleMapper roleMapper; private RoleMapper roleMapper;
@ -117,7 +118,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, AdminUser> implemen
emailFactory.sendEmailTemplate(email, emailTemplate, hashMap); emailFactory.sendEmailTemplate(email, emailTemplate, hashMap);
// 在Redis中存储验证码 // 在Redis中存储验证码
redisTemplate.opsForValue().set(RedisUserConstant.getAdminUserEmailCodePrefix(email), emailCode); redisTemplate.opsForValue().set(RedisUserConstant.getAdminUserEmailCodePrefix(email), emailCode, RedisUserConstant.REDIS_EXPIRATION_TIME, TimeUnit.MINUTES);
} }
/** /**

View File

@ -23,6 +23,8 @@ mybatis-plus:
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志 # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
bunny: bunny:
master: master:
host: 192.168.3.98 host: 192.168.3.98

View File

@ -87,8 +87,6 @@ management:
enabled: true enabled: true
os: os:
enabled: true enabled: true
git:
mode: full
endpoint: endpoint:
health: health: