|
@@ -757,6 +757,12 @@ public class FileUtils {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static String getAliYunSubUrl(String url) {
|
|
public static String getAliYunSubUrl(String url) {
|
|
|
|
+
|
|
|
|
+ //不要删除其他buket的文件
|
|
|
|
+ if (url != null && url.contains("huazheng2021")) {
|
|
|
|
+ return "666";
|
|
|
|
+ }
|
|
|
|
+
|
|
int uploadStart = url.indexOf("upload/");
|
|
int uploadStart = url.indexOf("upload/");
|
|
if (uploadStart != -1) { // 如果找到了以 'upload/' 开始的字符串
|
|
if (uploadStart != -1) { // 如果找到了以 'upload/' 开始的字符串
|
|
return url.substring(uploadStart);
|
|
return url.substring(uploadStart);
|