|
@@ -1492,10 +1492,12 @@ public class AuthServiceImpl implements AuthService {
|
|
for (ChallengeRoundVo challengeRoundVo : fileTreeVos) {
|
|
for (ChallengeRoundVo challengeRoundVo : fileTreeVos) {
|
|
//普通文件直接下载到临时文件夹uuid下
|
|
//普通文件直接下载到临时文件夹uuid下
|
|
String fileName = "";
|
|
String fileName = "";
|
|
- if ("dev".equals(active)) {
|
|
|
|
- fileName = zipPath + "\\"+challengeRoundVo.getTitle() ;
|
|
|
|
|
|
+ String ossurl = challengeRoundVo.getOssUrl();
|
|
|
|
+ ossurl.indexOf(".");
|
|
|
|
+ if ("dev".equals(active)) {
|
|
|
|
+ fileName = zipPath + "\\"+challengeRoundVo.getTitle() + ossurl.substring(ossurl.lastIndexOf("."));
|
|
} else {
|
|
} else {
|
|
- fileName = zipPath + "/"+challengeRoundVo.getTitle() ;
|
|
|
|
|
|
+ fileName = zipPath + "/"+challengeRoundVo.getTitle() + ossurl.substring(ossurl.lastIndexOf("."));
|
|
}
|
|
}
|
|
OSSUtils.downFileByFilePath("authFile/", challengeRoundVo.getOssName(), fileName);
|
|
OSSUtils.downFileByFilePath("authFile/", challengeRoundVo.getOssName(), fileName);
|
|
// else {
|
|
// else {
|
|
@@ -1557,10 +1559,11 @@ public class AuthServiceImpl implements AuthService {
|
|
for (ChallengeRoundVo challengeRoundVo : fileTreeVos) {
|
|
for (ChallengeRoundVo challengeRoundVo : fileTreeVos) {
|
|
//普通文件直接下载到临时文件夹uuid下
|
|
//普通文件直接下载到临时文件夹uuid下
|
|
String fileName = "";
|
|
String fileName = "";
|
|
|
|
+ String ossurl = challengeRoundVo.getOssUrl();
|
|
if ("dev".equals(active)) {
|
|
if ("dev".equals(active)) {
|
|
- fileName = zipPath + "\\"+challengeRoundVo.getTitle() ;
|
|
|
|
|
|
+ fileName = zipPath + "\\"+challengeRoundVo.getTitle() +ossurl.substring(ossurl.lastIndexOf("."));
|
|
} else {
|
|
} else {
|
|
- fileName = zipPath + "/"+challengeRoundVo.getTitle() ;
|
|
|
|
|
|
+ fileName = zipPath + "/"+challengeRoundVo.getTitle() + ossurl.substring(ossurl.lastIndexOf("."));
|
|
}
|
|
}
|
|
OSSUtils.downFileByFilePath("authFile/", challengeRoundVo.getOssName(), fileName);
|
|
OSSUtils.downFileByFilePath("authFile/", challengeRoundVo.getOssName(), fileName);
|
|
// else {
|
|
// else {
|