|
@@ -414,10 +414,10 @@ public class FileStorageUtil {
|
|
String oldUpyunBackupDomain = "static-backup.qmth.com.cn";
|
|
String oldUpyunBackupDomain = "static-backup.qmth.com.cn";
|
|
String replaceStr = null;
|
|
String replaceStr = null;
|
|
UpYunClient c = UpyunSiteManager.getUpYunClientByUpyunId("1");
|
|
UpYunClient c = UpyunSiteManager.getUpYunClientByUpyunId("1");
|
|
- if (path.startsWith(oldUpyunDomain)) {
|
|
|
|
|
|
+ if (path.contains(oldUpyunDomain)) {
|
|
replaceStr = c.getDomain();
|
|
replaceStr = c.getDomain();
|
|
}
|
|
}
|
|
- if (path.startsWith(oldUpyunBackupDomain)) {
|
|
|
|
|
|
+ if (path.contains(oldUpyunBackupDomain)) {
|
|
replaceStr = c.getDomainBackup();
|
|
replaceStr = c.getDomainBackup();
|
|
}
|
|
}
|
|
path = path.replace("https://", "");
|
|
path = path.replace("https://", "");
|