Commit 8294ea1c authored by huangjiamin's avatar huangjiamin

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

parent 9bc30048
...@@ -361,7 +361,7 @@ public class AccountServiceImpl implements AccountService { ...@@ -361,7 +361,7 @@ public class AccountServiceImpl implements AccountService {
current.setWhiteList(whiteList); current.setWhiteList(whiteList);
List<String> ownWhiteList = current.getOwnWhiteList(); List<String> ownWhiteList = current.getOwnWhiteList();
ownWhiteList.addAll(whiteList); ownWhiteList.addAll(whiteList);
current.setOwnWhiteList(ownWhiteList); current.setOwnWhiteList(ownWhiteList.stream().distinct().collect(Collectors.toList()));
if (account.getPromotion() != null) { if (account.getPromotion() != null) {
int invitedUsers = accountRepository.countByPromotionCodeAndParentIsNull(account.getPromotion().getCode()); int invitedUsers = accountRepository.countByPromotionCodeAndParentIsNull(account.getPromotion().getCode());
......
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