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
d9a0595d
Commit
d9a0595d
authored
Sep 24, 2020
by
xuxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/staging' into staging
parents
5dc5a98e
b2a47f58
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
AccountDto.java
...a/com/edgec/browserbackend/account/domain/AccountDto.java
+11
-0
IpResource.java
...a/com/edgec/browserbackend/browser/domain/IpResource.java
+5
-0
IpResourceDto.java
...a/com/edgec/browserbackend/browser/dto/IpResourceDto.java
+12
-1
IpResourceServiceImpl.java
...erbackend/browser/service/Impl/IpResourceServiceImpl.java
+0
-0
No files found.
src/main/java/com/edgec/browserbackend/account/domain/AccountDto.java
View file @
d9a0595d
...
@@ -42,6 +42,8 @@ public class AccountDto {
...
@@ -42,6 +42,8 @@ public class AccountDto {
private
List
<
String
>
whiteList
=
new
ArrayList
<>();
private
List
<
String
>
whiteList
=
new
ArrayList
<>();
private
List
<
String
>
userWhiteList
=
new
ArrayList
<>();
private
ShopSummary
shopSummary
;
private
ShopSummary
shopSummary
;
private
IpSummary
ipSummary
;
private
IpSummary
ipSummary
;
...
@@ -69,6 +71,7 @@ public class AccountDto {
...
@@ -69,6 +71,7 @@ public class AccountDto {
this
.
setToken
(
account
.
getToken
());
this
.
setToken
(
account
.
getToken
());
this
.
setPermission
(
account
.
getPermission
());
this
.
setPermission
(
account
.
getPermission
());
this
.
setWhiteList
(
account
.
getWhiteList
());
this
.
setWhiteList
(
account
.
getWhiteList
());
this
.
setUserWhiteList
(
account
.
getWhiteList
());
this
.
setQueryIpUrlList
(
account
.
getQueryIpUrlList
());
this
.
setQueryIpUrlList
(
account
.
getQueryIpUrlList
());
if
(
account
.
getPromotion
()
!=
null
)
{
if
(
account
.
getPromotion
()
!=
null
)
{
this
.
setPromotion
(
account
.
getPromotion
());
this
.
setPromotion
(
account
.
getPromotion
());
...
@@ -256,4 +259,12 @@ public class AccountDto {
...
@@ -256,4 +259,12 @@ public class AccountDto {
public
void
setPromotionCode
(
String
promotionCode
)
{
public
void
setPromotionCode
(
String
promotionCode
)
{
this
.
promotionCode
=
promotionCode
;
this
.
promotionCode
=
promotionCode
;
}
}
public
List
<
String
>
getUserWhiteList
()
{
return
userWhiteList
;
}
public
void
setUserWhiteList
(
List
<
String
>
userWhiteList
)
{
this
.
userWhiteList
=
userWhiteList
;
}
}
}
src/main/java/com/edgec/browserbackend/browser/domain/IpResource.java
View file @
d9a0595d
...
@@ -146,6 +146,11 @@ public class IpResource implements Serializable {
...
@@ -146,6 +146,11 @@ public class IpResource implements Serializable {
*/
*/
private
int
period
;
private
int
period
;
/**
* KCP端口号
*/
private
int
secondaryProxyPort
=
-
1
;
@Override
@Override
public
boolean
equals
(
Object
o
)
{
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
if
(
this
==
o
)
{
...
...
src/main/java/com/edgec/browserbackend/browser/dto/IpResourceDto.java
View file @
d9a0595d
...
@@ -35,6 +35,8 @@ public class IpResourceDto {
...
@@ -35,6 +35,8 @@ public class IpResourceDto {
private
String
specialLineIp
;
private
String
specialLineIp
;
private
int
secondaryProxyPort
=
-
1
;
public
IpResourceDto
()
{
public
IpResourceDto
()
{
}
}
...
@@ -52,6 +54,7 @@ public class IpResourceDto {
...
@@ -52,6 +54,7 @@ public class IpResourceDto {
this
.
password
=
ipResource
.
getPassword
();
this
.
password
=
ipResource
.
getPassword
();
this
.
protocol
=
ipResource
.
getProtocol
();
this
.
protocol
=
ipResource
.
getProtocol
();
this
.
specialLine
=
ipResource
.
isSpecialLine
();
this
.
specialLine
=
ipResource
.
isSpecialLine
();
this
.
secondaryProxyPort
=
ipResource
.
getSecondaryProxyPort
();
if
(
CollectionUtils
.
isNotEmpty
(
shopDtos
))
{
if
(
CollectionUtils
.
isNotEmpty
(
shopDtos
))
{
this
.
bindShops
=
shopDtos
;
this
.
bindShops
=
shopDtos
;
this
.
bindShop
=
shopDtos
.
get
(
0
);
this
.
bindShop
=
shopDtos
.
get
(
0
);
...
@@ -63,7 +66,6 @@ public class IpResourceDto {
...
@@ -63,7 +66,6 @@ public class IpResourceDto {
this
.
bindHistories
=
ipResource
.
getBindHistory
();
this
.
bindHistories
=
ipResource
.
getBindHistory
();
else
else
this
.
bindHistories
=
new
ArrayList
<>();
this
.
bindHistories
=
new
ArrayList
<>();
}
}
public
IpResourceDto
(
IpResource
ipResource
,
List
<
ShopDto
>
shopDtos
,
boolean
useHistory
,
SpecialLine
specialLine1
)
{
public
IpResourceDto
(
IpResource
ipResource
,
List
<
ShopDto
>
shopDtos
,
boolean
useHistory
,
SpecialLine
specialLine1
)
{
...
@@ -84,6 +86,7 @@ public class IpResourceDto {
...
@@ -84,6 +86,7 @@ public class IpResourceDto {
this
.
proxyPort
=
specialLine1
.
getProxyPort
();
this
.
proxyPort
=
specialLine1
.
getProxyPort
();
this
.
proxyProtocol
=
specialLine1
.
getProxyProtocol
();
this
.
proxyProtocol
=
specialLine1
.
getProxyProtocol
();
this
.
specialLine
=
ipResource
.
isSpecialLine
();
this
.
specialLine
=
ipResource
.
isSpecialLine
();
this
.
secondaryProxyPort
=
ipResource
.
getSecondaryProxyPort
();
if
(
CollectionUtils
.
isNotEmpty
(
shopDtos
))
{
if
(
CollectionUtils
.
isNotEmpty
(
shopDtos
))
{
this
.
bindShops
=
shopDtos
;
this
.
bindShops
=
shopDtos
;
this
.
bindShop
=
shopDtos
.
get
(
0
);
this
.
bindShop
=
shopDtos
.
get
(
0
);
...
@@ -265,4 +268,12 @@ public class IpResourceDto {
...
@@ -265,4 +268,12 @@ public class IpResourceDto {
public
void
setBindShop
(
ShopDto
bindShop
)
{
public
void
setBindShop
(
ShopDto
bindShop
)
{
this
.
bindShop
=
bindShop
;
this
.
bindShop
=
bindShop
;
}
}
public
int
getSecondaryProxyPort
()
{
return
secondaryProxyPort
;
}
public
void
setSecondaryProxyPort
(
int
secondaryProxyPort
)
{
this
.
secondaryProxyPort
=
secondaryProxyPort
;
}
}
}
src/main/java/com/edgec/browserbackend/browser/service/Impl/IpResourceServiceImpl.java
View file @
d9a0595d
This diff is collapsed.
Click to expand it.
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