|
@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.io.FileUtils;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
+import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
|
|
import cn.iocoder.yudao.module.infra.framework.file.core.client.FileClient;
|
|
|
import cn.iocoder.yudao.module.infra.framework.file.core.client.s3.FilePresignedUrlRespDTO;
|
|
|
import cn.iocoder.yudao.module.infra.framework.file.core.utils.FileTypeUtils;
|
|
@@ -74,7 +75,7 @@ public class FileServiceImpl implements FileService {
|
|
|
// 计算默认的 path 名
|
|
|
String type = FileTypeUtils.getMineType(content, name);
|
|
|
if (StrUtil.isEmpty(path)) {
|
|
|
- path = FileUtils.generatePath0(content, name);
|
|
|
+ path = FileUtils.generatePath0(content, name, SecurityFrameworkUtils.getLoginUserNickname()+SecurityFrameworkUtils.getLoginUserId());
|
|
|
}
|
|
|
// 如果 name 为空,则使用 path 填充
|
|
|
if (StrUtil.isEmpty(name)) {
|