This commit is contained in:
wucongxing8150 2025-06-30 14:52:42 +08:00
parent 1d5aa232e9
commit 1b18f1cf6d

View File

@ -46,8 +46,8 @@ public class OSSFileController {
public ResponseDTO<OSSPolicyVO> getOSSPolicy(@PathVariable int type){
OSSFileTypeEnum ossFileType = OSSFileTypeEnum.getByVal(type);
Long requestUserId = SmartRequestUtil.getRequestUserId();
// String dir = "/" +ossFileType.getDesc() + File.separator + "images/";
String dir = ossFileType.getDesc() + File.separator + requestUserId + File.separator;
String dir = ossFileType.getDesc() + File.separator + "images/";
// String dir = ossFileType.getDesc() + File.separator + requestUserId + File.separator;
// callbackUrl为 上传回调服务器的URL请将下面的IP和Port配置为您自己的真实信息
OSSClient client = new OSSClient(endpoint, accessKey, secretKey);
try {