|
|
|
@ -1038,7 +1038,11 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
int startIndex = index + prefix.length(); |
|
|
|
String result =st3+ str.substring(startIndex); |
|
|
|
if (!result.endsWith("/")) { |
|
|
|
result += "/"; |
|
|
|
//判断 如果最后五个字符里面有. 说明地址是文件 如果没有. 说明是路径 后面增加一个斜杠 |
|
|
|
String lastFiveChars = result.length() > 5 ? result.substring(str.length() - 5) : str; |
|
|
|
if(!lastFiveChars.contains(".")){ |
|
|
|
result += "/"; |
|
|
|
} |
|
|
|
} |
|
|
|
data.setUrl(result); |
|
|
|
break; |
|
|
|
|