chore: 优化部分配置及注释

This commit is contained in:
2024-09-04 20:16:11 +08:00
parent 387fb19464
commit 6324a5af88
3 changed files with 3 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ public class CommonController {
@Operation(summary = "上传文件", description = "上传文件")
@PostMapping("/file")
public FileUploadResp upload(@NotNull(message = "文件不能为空") MultipartFile file) {
// TODO 实际开发时请删除本条校验
ValidationUtils.throwIf(projectProperties.isProduction(), "演示环境不支持上传文件");
ValidationUtils.throwIf(file::isEmpty, "文件不能为空");
FileInfo fileInfo = fileService.upload(file);

View File

@@ -185,7 +185,7 @@ continew-starter.web.cors:
## 接口文档增强配置
knife4j:
# 开启生产环境屏蔽
production: true
production: ${project.production}
--- ### WebSocket 配置
continew-starter.messaging.websocket:

View File

@@ -193,7 +193,7 @@ cosid:
friendly: true
provider:
safe-js:
machine-bit: 3
machine-bit: 7
sequence-bit: 9
--- ### 认证配置