Commit a19d172e by huangjy

feat: 上传oss url问题

parent 6a3e2db8
...@@ -152,7 +152,7 @@ public class AliyunOSSRepository implements AccessoryRepository { ...@@ -152,7 +152,7 @@ public class AliyunOSSRepository implements AccessoryRepository {
e.printStackTrace(); e.printStackTrace();
} }
logger.debug("完成向aliyun-oss保存文件: {}", System.currentTimeMillis() - begin); logger.debug("完成向aliyun-oss保存文件: {}", System.currentTimeMillis() - begin);
return endpoint + "/" + accessoryBaseDir + "/" +path + "/" + fileName; return bucketName + "." +endpoint + "/" + accessoryBaseDir + "/" +path + "/" + fileName;
} }
/** /**
......
...@@ -173,7 +173,7 @@ aliyun: ...@@ -173,7 +173,7 @@ aliyun:
oss: oss:
accessKey: LTAI5tMjaFCiaYYLmtCLiuMj accessKey: LTAI5tMjaFCiaYYLmtCLiuMj
secretKey: Oq1925mQ8663nxaf83MyoOGAbVM71H secretKey: Oq1925mQ8663nxaf83MyoOGAbVM71H
endpoint: kangyang-oss.oss-cn-shenzhen.aliyuncs.com endpoint: oss-cn-shenzhen.aliyuncs.com
bucket: kangyang-oss bucket: kangyang-oss
baseDir: kangyang baseDir: kangyang
......
...@@ -162,7 +162,7 @@ aliyun: ...@@ -162,7 +162,7 @@ aliyun:
oss: oss:
accessKey: LTAI5tMjaFCiaYYLmtCLiuMj accessKey: LTAI5tMjaFCiaYYLmtCLiuMj
secretKey: Oq1925mQ8663nxaf83MyoOGAbVM71H secretKey: Oq1925mQ8663nxaf83MyoOGAbVM71H
endpoint: kangyang-oss.oss-cn-shenzhen.aliyuncs.com endpoint: oss-cn-shenzhen.aliyuncs.com
bucket: kangyang-oss bucket: kangyang-oss
baseDir: kangyang baseDir: kangyang
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment