Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
6e512373
Commit
6e512373
authored
Jun 21, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实名认证
parent
aaaee09f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
15 deletions
+19
-15
UserFeign.java
...va/com/github/wxiaoqi/security/admin/feign/UserFeign.java
+1
-0
AppUserLoginBiz.java
...om/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
+2
-2
AppUserRest.java
...va/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
+2
-1
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+11
-9
IdInformation.java
...ava/com/xxfc/platform/universal/entity/IdInformation.java
+1
-1
CertificationController.java
...latform/universal/controller/CertificationController.java
+1
-1
CertificationService.java
...xxfc/platform/universal/service/CertificationService.java
+1
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/UserFeign.java
View file @
6e512373
...
...
@@ -38,6 +38,7 @@ public interface UserFeign {
*/
@RequestMapping
(
value
=
"/api/app/user/authentication"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
authentication
(
@RequestParam
(
value
=
"userId"
)
Integer
userId
,
@RequestParam
(
value
=
"name"
)
String
name
,
@RequestParam
(
value
=
"idNumber"
)
String
idNumber
,
@RequestParam
(
value
=
"status"
)
Integer
status
);
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
View file @
6e512373
...
...
@@ -42,12 +42,12 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
}
@Override
@CacheClear
(
pre
=
"user{1.
username
}"
)
@CacheClear
(
pre
=
"user{1.
id
}"
)
public
void
updateSelectiveById
(
AppUserLogin
entity
)
{
super
.
updateSelectiveById
(
entity
);
}
@CacheClear
(
pre
=
"user{1.
username
}"
)
@CacheClear
(
pre
=
"user{1.
id
}"
)
public
void
updatePasswordById
(
AppUserLogin
entity
)
{
String
password
=
new
BCryptPasswordEncoder
(
UserConstant
.
PW_ENCORDER_SALT
).
encode
(
entity
.
getPassword
());
entity
.
setPassword
(
password
);
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
View file @
6e512373
...
...
@@ -164,10 +164,11 @@ public class AppUserRest {
@RequestMapping
(
value
=
"/user/authentication"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ObjectRestResponse
authentication
(
@RequestParam
(
value
=
"userId"
,
defaultValue
=
"0"
)
Integer
userId
,
@RequestParam
(
value
=
"name"
,
defaultValue
=
""
)
String
name
,
@RequestParam
(
value
=
"idNumber"
,
defaultValue
=
""
)
String
idNumber
,
@RequestParam
(
value
=
"status"
,
defaultValue
=
"0"
)
Integer
status
){
return
appPermissionService
.
upAuthentication
(
userId
,
idNumber
,
status
);
return
appPermissionService
.
upAuthentication
(
userId
,
name
,
idNumber
,
status
);
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
6e512373
...
...
@@ -543,26 +543,28 @@ public class AppPermissionService {
//实名认证
@Transactional
public
ObjectRestResponse
upAuthentication
(
Integer
userid
,
String
idNumber
,
Integer
status
)
{
if
(
userid
==
null
||
userid
==
0
||
(
status
==
1
&&
StringUtils
.
isBlank
(
idNumber
)))
{
public
ObjectRestResponse
upAuthentication
(
Integer
userid
,
String
name
,
String
idNumber
,
Integer
status
)
{
if
(
userid
==
null
||
userid
==
0
||
(
status
==
1
&&
StringUtils
.
isBlank
(
idNumber
)
&&
StringUtils
.
isBlank
(
name
)
))
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数为空"
);
}
try
{
AppUser
Login
user
=
appUserLoginBiz
.
getUser
ById
(
userid
);
if
(
user
==
null
)
{
AppUser
Vo
userVo
=
appUserDetailBiz
.
getUserInfo
ById
(
userid
);
if
(
user
Vo
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"用户不存在"
);
}
if
(
user
.
getCertificationStatus
()
==
1
)
{
return
ObjectRestResponse
.
createFailedResultWithObj
(
ResultCode
.
EXIST_CODE
,
"用户已认证"
,
user
.
getIdNumber
());
if
(
user
Vo
.
getCertificationStatus
()
==
1
)
{
return
ObjectRestResponse
.
createFailedResultWithObj
(
ResultCode
.
EXIST_CODE
,
"用户已认证"
,
user
Vo
.
getIdNumber
());
}
if
(
status
==
1
)
{
String
username
=
user
.
getUsername
();
user
=
new
AppUserLogin
();
AppUserLogin
user
=
new
AppUserLogin
();
user
.
setId
(
userid
);
user
.
setUsername
(
username
);
user
.
setIdNumber
(
idNumber
);
user
.
setCertificationStatus
(
1
);
appUserLoginBiz
.
updateSelectiveById
(
user
);
userVo
=
new
AppUserVo
();
userVo
.
setId
(
userVo
.
getId
());
userVo
.
setRealname
(
name
);
appUserDetailBiz
.
updUuserInfoById
(
userVo
);
}
return
ObjectRestResponse
.
succ
();
}
catch
(
Exception
e
)
{
...
...
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/entity/IdInformation.java
View file @
6e512373
...
...
@@ -19,7 +19,7 @@ import java.util.Date;
/**
* 证件信息表
*/
@Table
(
name
=
"
app_user_logi
n"
)
@Table
(
name
=
"
id_informatio
n"
)
@Data
public
class
IdInformation
implements
Serializable
{
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/CertificationController.java
View file @
6e512373
...
...
@@ -68,7 +68,7 @@ public class CertificationController {
//获取用户认证信息
ObjectRestResponse
orr
=
userFeign
.
authentication
(
idInformation
.
getUserLonginId
(),
null
,
0
);
ObjectRestResponse
orr
=
userFeign
.
authentication
(
idInformation
.
getUserLonginId
(),
null
,
null
,
0
);
if
(
orr
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
GET_AUTH_INFO_FAILED_CODE
,
"获取用户认证信息失败"
);
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/CertificationService.java
View file @
6e512373
...
...
@@ -474,7 +474,7 @@ public class CertificationService {
//认证成功后修改用户,用户认证状态
ObjectRestResponse
authentication
=
userFeign
.
authentication
(
idInformation
.
getUserLonginId
(),
idInformation
.
getIdNumber
(),
1
);
ObjectRestResponse
authentication
=
userFeign
.
authentication
(
idInformation
.
getUserLonginId
(),
idInformation
.
get
Name
(),
idInformation
.
get
IdNumber
(),
1
);
return
authentication
.
getRel
();
}
...
...
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