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
7cbfa8ae
Commit
7cbfa8ae
authored
Aug 03, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实名认证
parent
ede6a6d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
CertificationController.java
...latform/universal/controller/CertificationController.java
+11
-11
CertificationService.java
...xxfc/platform/universal/service/CertificationService.java
+2
-2
No files found.
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/CertificationController.java
View file @
7cbfa8ae
...
@@ -29,7 +29,7 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -29,7 +29,7 @@ import javax.servlet.http.HttpServletRequest;
@RestController
@RestController
@RequestMapping
(
"certif"
)
@RequestMapping
(
"certif"
)
@Slf4j
@Slf4j
public
class
CertificationController
{
public
class
CertificationController
{
...
@@ -62,12 +62,10 @@ public class CertificationController {
...
@@ -62,12 +62,10 @@ public class CertificationController {
ObjectRestResponse
.
createDefaultFail
();
ObjectRestResponse
.
createDefaultFail
();
}
}
String
token
=
request
.
getHeader
(
"Authorization"
);
String
token
=
request
.
getHeader
(
"Authorization"
);
log
.
info
(
"------token======"
+
token
);
log
.
info
(
"------token======"
+
token
);
if
(
StringUtils
.
isEmpty
(
token
))
{
if
(
StringUtils
.
isEmpty
(
token
))
{
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
RSTOKEN_NULL_CODE
,
"
token为空
"
);
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
RSTOKEN_NULL_CODE
,
"
无法识别,请重新上传
"
);
}
}
...
@@ -77,7 +75,7 @@ public class CertificationController {
...
@@ -77,7 +75,7 @@ public class CertificationController {
if
(
appUserDTOObjectRestResponse
==
null
||
appUserDTOObjectRestResponse
.
getData
()==
null
||
appUserDTOObjectRestResponse
.
getData
().
getId
()==
0
)
{
if
(
appUserDTOObjectRestResponse
==
null
||
appUserDTOObjectRestResponse
.
getData
()==
null
||
appUserDTOObjectRestResponse
.
getData
().
getId
()==
0
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
GET_APPUSER_FAILED_CODE
,
"
获取用户失败
"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
GET_APPUSER_FAILED_CODE
,
"
无法识别,请重新上传
"
);
}
}
AppUserDTO
appUserDTO
=
appUserDTOObjectRestResponse
.
getData
();
AppUserDTO
appUserDTO
=
appUserDTOObjectRestResponse
.
getData
();
...
@@ -87,15 +85,17 @@ public class CertificationController {
...
@@ -87,15 +85,17 @@ public class CertificationController {
//获取用户认证信息
//获取用户认证信息
ObjectRestResponse
orr
=
userFeign
.
authentication
(
idInformation
.
getUserLonginId
(),
null
,
null
,
0
);
ObjectRestResponse
orr
=
null
;
try
{
orr
=
userFeign
.
authentication
(
idInformation
.
getUserLonginId
(),
null
,
null
,
0
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
if
(
orr
==
null
)
{
if
(
orr
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
GET_AUTH_INFO_FAILED_CODE
,
"
获取用户认证信息失败
"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
GET_AUTH_INFO_FAILED_CODE
,
"
无法识别,请重新上传
"
);
}
}
if
(!
orr
.
getRel
()){
return
orr
;
}
Integer
type
=
idInformation
.
getCertificateType
();
Integer
type
=
idInformation
.
getCertificateType
();
log
.
info
(
"----type========="
+
type
);
log
.
info
(
"----type========="
+
type
);
...
@@ -117,7 +117,7 @@ public class CertificationController {
...
@@ -117,7 +117,7 @@ public class CertificationController {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"
错误
"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"
无法识别,请重新上传
"
);
}
}
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/CertificationService.java
View file @
7cbfa8ae
...
@@ -148,10 +148,10 @@ public class CertificationService {
...
@@ -148,10 +148,10 @@ public class CertificationService {
HashedMap
hashMap
=
new
HashedMap
();
HashedMap
hashMap
=
new
HashedMap
();
// 认证状态:true是认证过
// 认证状态:true是认证过
//判断是否
map
是否为null
//判断是否
bean
是否为null
if
(
idInformation
==
null
)
{
if
(
idInformation
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"
请提供资料
"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
INCOMPLETE_DATA
,
"
无法识别,请重新上传
"
);
}
}
...
...
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