记得上下班打卡 | 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
b59fd3a4
Commit
b59fd3a4
authored
Jul 25, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
至信链异常处理
parent
f38f88bc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
207 deletions
+125
-207
ZxlnftBiz.java
...java/com/liquidnet/common/third/zxlnft/biz/ZxlnftBiz.java
+16
-1
ZxlnftSdkServiceImpl.java
...ommon/third/zxlnft/service/impl/ZxlnftSdkServiceImpl.java
+6
-205
ZxlnftSdkUtil.java
...com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
+103
-1
No files found.
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/biz/ZxlnftBiz.java
View file @
b59fd3a4
...
...
@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.biz;
import
com.alibaba.fastjson.JSONObject
;
import
com.liquidnet.common.third.zxlnft.config.ZxlnftConfig
;
import
com.liquidnet.common.third.zxlnft.constant.ZxlErrorEnum
;
import
com.liquidnet.common.third.zxlnft.dto.wallet.*
;
import
com.liquidnet.common.third.zxlnft.exception.ZxlNftException
;
import
com.liquidnet.common.third.zxlnft.service.WalletSdkService
;
...
...
@@ -83,7 +84,21 @@ public class ZxlnftBiz {
}
public
<
T
>
T
buildNftRespObj
(
String
response
,
Class
<
T
>
tClass
){
return
this
.
buildNftRespObj
(
response
,
tClass
,
true
);
T
resp
=
null
;
try
{
/**
* 构造返回结果
*/
resp
=
this
.
buildNftRespObj
(
response
,
tClass
,
true
);
log
.
info
(
tClass
.
getName
()+
"--->>> return result : {} "
,
resp
.
toString
());
}
catch
(
ZxlNftException
e
){
log
.
error
(
"buildNftRespObj biz error response: {}"
,
JsonUtils
.
toJson
(
response
),
e
);
throw
new
ZxlNftException
(
e
.
getCode
(),
e
.
getMsg
());
}
catch
(
Exception
e
)
{
log
.
error
(
"buildNftRespObj sys error response: {}"
,
JsonUtils
.
toJson
(
response
),
e
);
throw
new
ZxlNftException
(
ZxlErrorEnum
.
SYSTEM_ERROR
.
getCode
(),
e
.
getMessage
());
}
return
resp
;
}
public
<
T
>
T
buildNftRespObj
(
String
response
,
Class
<
T
>
tClass
,
boolean
isJson
){
...
...
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/service/impl/ZxlnftSdkServiceImpl.java
View file @
b59fd3a4
This diff is collapsed.
Click to expand it.
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
View file @
b59fd3a4
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