|
@@ -250,6 +250,7 @@ public class AliyunOssService implements FssService {
|
|
filePath = this.fixOssFilePath(filePath);
|
|
filePath = this.fixOssFilePath(filePath);
|
|
String fileUrl = FssProperty.FSS_URL_PREFIX + "/" + filePath;
|
|
String fileUrl = FssProperty.FSS_URL_PREFIX + "/" + filePath;
|
|
|
|
|
|
|
|
+ // @see https://help.aliyun.com/zh/oss/developer-reference/include-signatures-in-the-authorization-header
|
|
// 示例:https://{bucket}.oss-cn-shenzhen.aliyuncs.com
|
|
// 示例:https://{bucket}.oss-cn-shenzhen.aliyuncs.com
|
|
String requestUrl = FssProperty.FSS_ENDPOINT.replace(FssProperty.FSS_REGION_ID,
|
|
String requestUrl = FssProperty.FSS_ENDPOINT.replace(FssProperty.FSS_REGION_ID,
|
|
FssProperty.FSS_BUCKET + "." + FssProperty.FSS_REGION_ID);
|
|
FssProperty.FSS_BUCKET + "." + FssProperty.FSS_REGION_ID);
|
|
@@ -275,6 +276,8 @@ public class AliyunOssService implements FssService {
|
|
info.setFormParams(params);
|
|
info.setFormParams(params);
|
|
info.setFormUrl(requestUrl);
|
|
info.setFormUrl(requestUrl);
|
|
info.setAccessUrl(fileUrl);
|
|
info.setAccessUrl(fileUrl);
|
|
|
|
+
|
|
|
|
+ log.info("buildSign filePath:{} md5:{}", filePath, md5);
|
|
return info;
|
|
return info;
|
|
}
|
|
}
|
|
|
|
|