feat:上传后的文件地址增加处理接口
This commit is contained in:
@@ -46,7 +46,7 @@ public class FileUploadService {
|
||||
FileUtil.writeFromStream(stream, filePath.getAbsolutePath());
|
||||
IoUtil.close(stream);
|
||||
|
||||
return filePath.getHttpPath();
|
||||
return tieshengWebConfigurer.uploadFileDeal(filePath.getHttpPath());
|
||||
} catch (Exception e) {
|
||||
throw new ApiException("文件流读取失败:" + e.getMessage());
|
||||
}
|
||||
@@ -133,7 +133,7 @@ public class FileUploadService {
|
||||
// 6,删除块文件目录
|
||||
FileUtil.del(folder.getAbsolutePath());
|
||||
|
||||
return uploadPath.getHttpPath();
|
||||
return tieshengWebConfigurer.uploadFileDeal(uploadPath.getHttpPath());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,16 @@ public interface TieshengWebConfigurer {
|
||||
default void uploadFileCheck(String fileExt) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件后处理文件
|
||||
*
|
||||
* @param uploadPath
|
||||
* @return
|
||||
*/
|
||||
default String uploadFileDeal(String uploadPath) {
|
||||
return uploadPath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 配置登录
|
||||
|
||||
Reference in New Issue
Block a user