fix[文件服务]:上传文件后返回的FilePath不需要拼接bucketname,查询的时候直接通过该FilePath查询即可,机库上传传过来的参数本身就是不带bucketname的

This commit is contained in:
2025-02-20 17:38:22 +08:00
parent aea5d81310
commit cdb35876a0
3 changed files with 5 additions and 2 deletions
@@ -103,6 +103,8 @@ public class OssService extends AbstractIFileService {
fileInfo.setIsImg(ossObject.getKey().endsWith(".jpeg") || ossObject.getKey().endsWith(".png") || ossObject.getKey().endsWith(".gif"));
if (fileInfo.getIsImg()) {
fileInfo.setContentType("image/jpeg");
}else {
fileInfo.setContentType("video/mp4");
}
int res = baseMapper.insert(fileInfo);