Commit 96346f82 authored by Administrator's avatar Administrator

Merge branch 'staging' into 'master'

Staging

See merge request !48
parents 184af7d7 9640bc43
...@@ -31,7 +31,7 @@ public interface IpResourceRepository extends MongoRepository<IpResource, String ...@@ -31,7 +31,7 @@ public interface IpResourceRepository extends MongoRepository<IpResource, String
List<IpResource> findByOwnerInAndSpecialLine(List<String> owners, boolean specialLine); List<IpResource> findByOwnerInAndSpecialLine(List<String> owners, boolean specialLine);
List<IpResource> findBySpecialLine(boolean specialLine); List<IpResource> findBySpecialLine(boolean specialLine);
List<IpResource> findByRegionIn(List<String> regions); List<IpResource> findByRegionInAndIsDeleted(List<String> regions, boolean isDeleted);
List<IpResource> findByStatusAndLockedAndLockTimestampLessThan(int status, boolean locked, long timestamp); List<IpResource> findByStatusAndLockedAndLockTimestampLessThan(int status, boolean locked, long timestamp);
......
...@@ -725,7 +725,7 @@ public class IpResourceServiceImpl implements IpResourceService { ...@@ -725,7 +725,7 @@ public class IpResourceServiceImpl implements IpResourceService {
@Override @Override
public void setSpecialLine() { public void setSpecialLine() {
List<IpResource> ipResources = ipResourceRepository.findByRegionIn(Arrays.asList( List<IpResource> ipResources = ipResourceRepository.findByRegionInAndIsDeleted(Arrays.asList(
"asiapa", "asiapa",
"hongkong", "hongkong",
"japan", "japan",
...@@ -752,7 +752,7 @@ public class IpResourceServiceImpl implements IpResourceService { ...@@ -752,7 +752,7 @@ public class IpResourceServiceImpl implements IpResourceService {
"oregon", "oregon",
"ireland", "ireland",
"london", "london",
"ireland")); "ireland"), false);
for (IpResource ipResource : ipResources) { for (IpResource ipResource : ipResources) {
ipResource.setProxyUsername(ipResource.getAddr()); ipResource.setProxyUsername(ipResource.getAddr());
ipResource.setProxyPassword(genRandom(3, 12)); ipResource.setProxyPassword(genRandom(3, 12));
......
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