Commit d591cf5f authored by huangjiamin's avatar huangjiamin

Merge remote-tracking branch 'remotes/origin/feature-secondaryProxyPort' into staging

parents 2b960722 dc530103
...@@ -42,7 +42,7 @@ public class AccountDto { ...@@ -42,7 +42,7 @@ public class AccountDto {
private List<String> whiteList = new ArrayList<>(); private List<String> whiteList = new ArrayList<>();
private List<String> userWhiteList = new ArrayList<>(); private List<String> ownWhiteList = new ArrayList<>();
private ShopSummary shopSummary; private ShopSummary shopSummary;
...@@ -70,8 +70,11 @@ public class AccountDto { ...@@ -70,8 +70,11 @@ public class AccountDto {
this.setParent(account.getParent()); this.setParent(account.getParent());
this.setToken(account.getToken()); this.setToken(account.getToken());
this.setPermission(account.getPermission()); this.setPermission(account.getPermission());
this.setWhiteList(account.getWhiteList()); List<String> whiteList = account.getWhiteList();
this.setUserWhiteList(account.getWhiteList()); this.setWhiteList(whiteList);
whiteList.add("google.com/recaptcha");
whiteList.add("google.com/js");
this.setOwnWhiteList(whiteList);
this.setQueryIpUrlList(account.getQueryIpUrlList()); this.setQueryIpUrlList(account.getQueryIpUrlList());
if (account.getPromotion() != null) { if (account.getPromotion() != null) {
this.setPromotion(account.getPromotion()); this.setPromotion(account.getPromotion());
...@@ -260,11 +263,11 @@ public class AccountDto { ...@@ -260,11 +263,11 @@ public class AccountDto {
this.promotionCode = promotionCode; this.promotionCode = promotionCode;
} }
public List<String> getUserWhiteList() { public List<String> getOwnWhiteList() {
return userWhiteList; return ownWhiteList;
} }
public void setUserWhiteList(List<String> userWhiteList) { public void setOwnWhiteList(List<String> ownWhiteList) {
this.userWhiteList = userWhiteList; this.ownWhiteList = ownWhiteList;
} }
} }
...@@ -709,9 +709,13 @@ public class IpResourceServiceImpl implements IpResourceService { ...@@ -709,9 +709,13 @@ public class IpResourceServiceImpl implements IpResourceService {
} }
// 2. 如果 ip 资源的 status 为 6(未分配) 或者 ( ip资源为专线 且 purchasedTime(购买IP的时间) 在 14 分钟内) // 2. 如果 ip 资源的 status 为 6(未分配) 或者 ( ip资源为专线 且 purchasedTime(购买IP的时间) 在 14 分钟内)
/*if (x.getStatus() == 6 || (x.isSpecialLine() && x.getPurchasedTime() > (Instant.now().minusSeconds(14 * 60).toEpochMilli()))) { if (x.getStatus() == 6) {
x.setStatus(3); x.setStatus(3);
}*/ }
if(x.isSpecialLine() && x.getStatus() == 0 && x.getPurchasedTime() > (Instant.now().minusSeconds(14 * 60).toEpochMilli())) {
x.setSpecialLine(false);
}
// 3. 如果 ip 资源的 status 为 3(正在分配) // 3. 如果 ip 资源的 status 为 3(正在分配)
if (x.getStatus() == 3) { if (x.getStatus() == 3) {
......
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