Commit dc530103 authored by huangjiamin's avatar huangjiamin

购买后将海外的IP添加KCP端口号 + own白名单

parent 96ecabc1
......@@ -42,7 +42,7 @@ public class AccountDto {
private List<String> whiteList = new ArrayList<>();
private List<String> userWhiteList = new ArrayList<>();
private List<String> ownWhiteList = new ArrayList<>();
private ShopSummary shopSummary;
......@@ -70,8 +70,11 @@ public class AccountDto {
this.setParent(account.getParent());
this.setToken(account.getToken());
this.setPermission(account.getPermission());
this.setWhiteList(account.getWhiteList());
this.setUserWhiteList(account.getWhiteList());
List<String> whiteList = account.getWhiteList();
this.setWhiteList(whiteList);
whiteList.add("google.com/recaptcha");
whiteList.add("google.com/js");
this.setOwnWhiteList(whiteList);
this.setQueryIpUrlList(account.getQueryIpUrlList());
if (account.getPromotion() != null) {
this.setPromotion(account.getPromotion());
......@@ -260,11 +263,11 @@ public class AccountDto {
this.promotionCode = promotionCode;
}
public List<String> getUserWhiteList() {
return userWhiteList;
public List<String> getOwnWhiteList() {
return ownWhiteList;
}
public void setUserWhiteList(List<String> userWhiteList) {
this.userWhiteList = userWhiteList;
public void setOwnWhiteList(List<String> ownWhiteList) {
this.ownWhiteList = ownWhiteList;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment