记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
93573269
Commit
93573269
authored
May 28, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改nft实名认证
parent
01fc8df9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
ZxlnftSdkServiceImpl.java
...ommon/third/zxlnft/service/impl/ZxlnftSdkServiceImpl.java
+3
-7
ZxlnftSdkUtil.java
...com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
+5
-0
ZxinUserCommonBiz.java
...net/service/galaxy/router/zxin/biz/ZxinUserCommonBiz.java
+14
-5
No files found.
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/service/impl/ZxlnftSdkServiceImpl.java
View file @
93573269
...
@@ -116,9 +116,9 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
...
@@ -116,9 +116,9 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
}
}
log
.
info
(
"nft003RegisterPersonPlatform--->>> response : {} "
,
response
);
log
.
info
(
"nft003RegisterPersonPlatform--->>> response : {} "
,
response
);
if
(
StringUtils
.
isEmpty
(
response
))
{
//
if (StringUtils.isEmpty(response)) {
return
null
;
//
return null;
}
//
}
/**
/**
* 构造返回结果
* 构造返回结果
...
@@ -488,10 +488,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
...
@@ -488,10 +488,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
}
}
log
.
info
(
"nft014IdentityBindSubmitByTrusted--->>> response : {} "
,
response
);
log
.
info
(
"nft014IdentityBindSubmitByTrusted--->>> response : {} "
,
response
);
if
(
StringUtils
.
isEmpty
(
response
))
{
return
null
;
}
/**
/**
* 构造返回结果
* 构造返回结果
*/
*/
...
...
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
View file @
93573269
...
@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.util;
...
@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.util;
import
com.liquidnet.common.third.zxlnft.biz.ZxlnftBiz
;
import
com.liquidnet.common.third.zxlnft.biz.ZxlnftBiz
;
import
com.liquidnet.common.third.zxlnft.config.ZxlnftConfig
;
import
com.liquidnet.common.third.zxlnft.config.ZxlnftConfig
;
import
com.liquidnet.common.third.zxlnft.constant.ZxlErrorEnum
;
import
com.liquidnet.common.third.zxlnft.dto.*
;
import
com.liquidnet.common.third.zxlnft.dto.*
;
import
com.liquidnet.common.third.zxlnft.dto.nft.*
;
import
com.liquidnet.common.third.zxlnft.dto.nft.*
;
import
com.liquidnet.common.third.zxlnft.exception.ZxlNftException
;
import
com.liquidnet.common.third.zxlnft.exception.ZxlNftException
;
...
@@ -90,6 +91,8 @@ public class ZxlnftSdkUtil {
...
@@ -90,6 +91,8 @@ public class ZxlnftSdkUtil {
BeanUtil
.
copy
(
resp
,
respDto
);
BeanUtil
.
copy
(
resp
,
respDto
);
}
catch
(
ZxlNftException
e
){
}
catch
(
ZxlNftException
e
){
return
ZxlnftResponseDto
.
failure
(
e
.
getCode
()+
","
+
e
.
getMessage
());
return
ZxlnftResponseDto
.
failure
(
e
.
getCode
()+
","
+
e
.
getMessage
());
}
catch
(
Exception
e
){
return
ZxlnftResponseDto
.
failure
(
ZxlErrorEnum
.
SERVER_INNER_ERROR
.
getCode
(),
ZxlErrorEnum
.
SERVER_INNER_ERROR
.
getMsg
());
}
}
return
ZxlnftResponseDto
.
success
(
respDto
);
return
ZxlnftResponseDto
.
success
(
respDto
);
}
}
...
@@ -316,6 +319,8 @@ public class ZxlnftSdkUtil {
...
@@ -316,6 +319,8 @@ public class ZxlnftSdkUtil {
BeanUtil
.
copy
(
resp
,
respDto
);
BeanUtil
.
copy
(
resp
,
respDto
);
}
catch
(
ZxlNftException
e
){
}
catch
(
ZxlNftException
e
){
return
ZxlnftResponseDto
.
failure
(
e
.
getCode
()+
","
+
e
.
getMessage
());
return
ZxlnftResponseDto
.
failure
(
e
.
getCode
()+
","
+
e
.
getMessage
());
}
catch
(
Exception
e
){
return
ZxlnftResponseDto
.
failure
(
ZxlErrorEnum
.
SERVER_INNER_ERROR
.
getCode
(),
ZxlErrorEnum
.
SERVER_INNER_ERROR
.
getMsg
());
}
}
return
ZxlnftResponseDto
.
success
(
respDto
);
return
ZxlnftResponseDto
.
success
(
respDto
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-common/src/main/java/com/liquidnet/service/galaxy/router/zxin/biz/ZxinUserCommonBiz.java
View file @
93573269
...
@@ -171,9 +171,13 @@ public class ZxinUserCommonBiz {
...
@@ -171,9 +171,13 @@ public class ZxinUserCommonBiz {
if
(
nft003Resp
.
isSuccess
()){
if
(
nft003Resp
.
isSuccess
()){
userIdentification
=
nft003Resp
.
getData
().
getUserIdentification
();
userIdentification
=
nft003Resp
.
getData
().
getUserIdentification
();
isRealNameAuthSuccess
=
true
;
isRealNameAuthSuccess
=
true
;
}
else
{
if
(
nft003Resp
.
getCode
().
equals
(
ZxlErrorEnum
.
SERVER_INNER_ERROR
.
getCode
())){
throw
new
ZxlNftException
(
nft003Resp
.
getCode
(),
nft003Resp
.
getMessage
());
}
else
{
}
else
{
throw
new
GalaxyNftUserException
(
nft003Resp
.
getCode
(),
nft003Resp
.
getMessage
());
throw
new
GalaxyNftUserException
(
nft003Resp
.
getCode
(),
nft003Resp
.
getMessage
());
}
}
}
//如果实名认证成功,并且该身份证已经开通过数字账户
//如果实名认证成功,并且该身份证已经开通过数字账户
if
(
isRealNameAuthSuccess
){
if
(
isRealNameAuthSuccess
){
...
@@ -291,8 +295,8 @@ public class ZxinUserCommonBiz {
...
@@ -291,8 +295,8 @@ public class ZxinUserCommonBiz {
//是否开通数字账户
//是否开通数字账户
boolean
isOpenAccount
=
false
;
boolean
isOpenAccount
=
false
;
//开通失败错误信息
//开通失败错误信息
String
resultCode
=
null
;
String
resultCode
=
NftAccStatusEnum
.
StatusAcc
.
ING
.
getCode
()
;
String
resultMessage
=
null
;
String
resultMessage
=
NftAccStatusEnum
.
StatusAcc
.
ING
.
getMsg
()
;
//实名成功+绑定区块链地址成功
//实名成功+绑定区块链地址成功
if
(
isRealNameAuthSuccess
&&
isBindBlockAddressSuccess
){
if
(
isRealNameAuthSuccess
&&
isBindBlockAddressSuccess
){
...
@@ -305,8 +309,13 @@ public class ZxinUserCommonBiz {
...
@@ -305,8 +309,13 @@ public class ZxinUserCommonBiz {
if
(!
isOpenAccount
){
if
(!
isOpenAccount
){
//实名失败
//实名失败
if
(!
isRealNameAuthSuccess
){
if
(!
isRealNameAuthSuccess
){
if
(
StringUtil
.
isNotEmpty
(
bizFailDesc
)){
resultCode
=
NftAccStatusEnum
.
StatusAcc
.
FAILURE1
.
getCode
();
resultCode
=
NftAccStatusEnum
.
StatusAcc
.
FAILURE1
.
getCode
();
resultMessage
=
NftAccStatusEnum
.
StatusAcc
.
FAILURE1
.
getMsg
();
resultMessage
=
NftAccStatusEnum
.
StatusAcc
.
FAILURE1
.
getMsg
();
}
else
if
(
StringUtil
.
isNotEmpty
(
sysFailDesc
)){
resultCode
=
NftAccStatusEnum
.
StatusAcc
.
FAILURE2
.
getCode
();
resultMessage
=
NftAccStatusEnum
.
StatusAcc
.
FAILURE2
.
getMsg
();
}
}
else
{
}
else
{
//地址绑定失败
//地址绑定失败
if
(!
isBindBlockAddressSuccess
){
if
(!
isBindBlockAddressSuccess
){
...
...
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