|
@@ -53,6 +53,7 @@ public class AliyunSiteManager {
|
|
|
String accessKeyId = PropertyHolder.getString("$aliyun.site." + aliyunId + ".accessKeyId");
|
|
|
String accessKeySecret = PropertyHolder.getString("$aliyun.site." + aliyunId + ".accessKeySecret");
|
|
|
String domain = PropertyHolder.getString("$aliyun.site." + aliyunId + ".domain");
|
|
|
+ String domainBackup = PropertyHolder.getString("$aliyun.site." + aliyunId + ".domain.backup");
|
|
|
|
|
|
if (StringUtils.isBlank(bucket)) {
|
|
|
throw new StatusException("520001", "bucket is not configured. aliyunId=" + aliyunId);
|
|
@@ -70,7 +71,8 @@ public class AliyunSiteManager {
|
|
|
throw new StatusException("520005", "domain is not configured. aliyunId=" + aliyunId);
|
|
|
}
|
|
|
if (null == ACCOUNT_HOLDERS.get(aliyunId)) {
|
|
|
- AliYunAccount ac = new AliYunAccount(bucket, ossEndpoint, accessKeyId, accessKeySecret, domain);
|
|
|
+ AliYunAccount ac = new AliYunAccount(bucket, ossEndpoint, accessKeyId, accessKeySecret, domain,
|
|
|
+ domainBackup);
|
|
|
ACCOUNT_HOLDERS.put(aliyunId, ac);
|
|
|
}
|
|
|
}
|
|
@@ -92,7 +94,7 @@ public class AliyunSiteManager {
|
|
|
}
|
|
|
return aliyunSite;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public static AliYunAccount getAliYunAccountByAliyunId(String aliyunId) {
|
|
|
AliYunAccount ac = ACCOUNT_HOLDERS.get(aliyunId);
|
|
|
|