Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
96346f82
Commit
96346f82
authored
May 06, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staging' into 'master'
Staging See merge request
!48
parents
184af7d7
9640bc43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
IpResourceRepository.java
...owserbackend/browser/repository/IpResourceRepository.java
+1
-1
IpResourceServiceImpl.java
...erbackend/browser/service/Impl/IpResourceServiceImpl.java
+2
-2
No files found.
src/main/java/com/edgec/browserbackend/browser/repository/IpResourceRepository.java
View file @
96346f82
...
@@ -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
>
findByRegionIn
AndIsDeleted
(
List
<
String
>
regions
,
boolean
isDeleted
);
List
<
IpResource
>
findByStatusAndLockedAndLockTimestampLessThan
(
int
status
,
boolean
locked
,
long
timestamp
);
List
<
IpResource
>
findByStatusAndLockedAndLockTimestampLessThan
(
int
status
,
boolean
locked
,
long
timestamp
);
...
...
src/main/java/com/edgec/browserbackend/browser/service/Impl/IpResourceServiceImpl.java
View file @
96346f82
...
@@ -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
.
findByRegionIn
AndIsDeleted
(
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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment