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
aa06e733
Commit
aa06e733
authored
Mar 26, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业认证
parent
57b70e74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
Account.java
...java/com/edgec/browserbackend/account/domain/Account.java
+10
-0
CompanyAuthorize.java
...edgec/browserbackend/account/domain/CompanyAuthorize.java
+15
-0
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+3
-0
No files found.
src/main/java/com/edgec/browserbackend/account/domain/Account.java
View file @
aa06e733
...
@@ -55,6 +55,8 @@ public class Account {
...
@@ -55,6 +55,8 @@ public class Account {
private
int
shopCount
=
0
;
private
int
shopCount
=
0
;
private
int
authorized
;
// 0: 未认证; 1: 已认证;
private
List
<
String
>
queryIpUrlList
=
Arrays
.
asList
(
private
List
<
String
>
queryIpUrlList
=
Arrays
.
asList
(
"http://lumtest.com/myip.json"
,
"http://lumtest.com/myip.json"
,
"http://api.myip.com"
,
"http://api.myip.com"
,
...
@@ -254,4 +256,12 @@ public class Account {
...
@@ -254,4 +256,12 @@ public class Account {
public
void
setQueryIpUrlList
(
List
<
String
>
queryIpUrlList
)
{
public
void
setQueryIpUrlList
(
List
<
String
>
queryIpUrlList
)
{
this
.
queryIpUrlList
=
queryIpUrlList
;
this
.
queryIpUrlList
=
queryIpUrlList
;
}
}
public
int
getAuthorized
()
{
return
authorized
;
}
public
void
setAuthorized
(
int
authorized
)
{
this
.
authorized
=
authorized
;
}
}
}
src/main/java/com/edgec/browserbackend/account/domain/CompanyAuthorize.java
0 → 100644
View file @
aa06e733
package
com
.
edgec
.
browserbackend
.
account
.
domain
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.mongodb.core.mapping.Document
;
@Document
(
collection
=
"companyauthorize"
)
public
class
CompanyAuthorize
{
@Id
private
String
id
;
private
int
type
;
//0 -- 企业, 1 -- 个体工商户
private
String
name
;
private
String
signUpNumber
;
private
String
licensePhotoId
;
}
src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
View file @
aa06e733
...
@@ -772,6 +772,9 @@ public class AccountServiceImpl implements AccountService {
...
@@ -772,6 +772,9 @@ public class AccountServiceImpl implements AccountService {
whiteList
.
addAll
(
update
.
getWhiteList
());
whiteList
.
addAll
(
update
.
getWhiteList
());
account
.
setWhiteList
(
whiteList
);
account
.
setWhiteList
(
whiteList
);
if
(
update
.
getAuthorized
()
==
1
)
account
.
setAuthorized
(
1
);
log
.
debug
(
"account {} changes has been saved"
,
name
);
log
.
debug
(
"account {} changes has been saved"
,
name
);
if
(!
org
.
apache
.
commons
.
lang3
.
StringUtils
.
equalsIgnoreCase
(
preEmail
,
update
.
getEmail
()))
{
if
(!
org
.
apache
.
commons
.
lang3
.
StringUtils
.
equalsIgnoreCase
(
preEmail
,
update
.
getEmail
()))
{
Account
account1
=
repository
.
findByEmail
(
update
.
getEmail
());
Account
account1
=
repository
.
findByEmail
(
update
.
getEmail
());
...
...
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