Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-financial
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dd80bc27
authored
May 25, 2026
by
崔彦峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化NbCbCommonUtil日志。
1 parent
5f84ec46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/util/NbCbCommonUtil.java
rpc-dj-financial/src/main/java/cn/com/glsx/dj/financial/util/NbCbCommonUtil.java
View file @
dd80bc2
...
@@ -32,25 +32,25 @@ public class NbCbCommonUtil {
...
@@ -32,25 +32,25 @@ public class NbCbCommonUtil {
public
JSONObject
getNbCbResponseData
(
String
productId
,
String
serviceID
,
String
jsonString
)
throws
Exception
{
public
JSONObject
getNbCbResponseData
(
String
productId
,
String
serviceID
,
String
jsonString
)
throws
Exception
{
log
.
info
(
"
查询宁波银行接口
productId:{}, serviceID:{}, parma:{}"
,
productId
,
serviceID
,
jsonString
);
log
.
info
(
"
getNbCbResponseData查询宁波银行接口
productId:{}, serviceID:{}, parma:{}"
,
productId
,
serviceID
,
jsonString
);
String
appKey
=
getAppKey
(
jsonString
);
String
appKey
=
getAppKey
(
jsonString
);
String
res
=
OpenSDK
.
send
(
appKey
,
productId
,
serviceID
,
jsonString
);
String
res
=
OpenSDK
.
send
(
appKey
,
productId
,
serviceID
,
jsonString
);
log
.
info
(
"
查询宁波银行接口 response"
+
res
);
log
.
info
(
"
getNbCbResponseData查询宁波银行接口productId:{}, serviceID:{}, parma:{},response:{}"
,
productId
,
serviceID
,
jsonString
,
res
);
JSONObject
resonseJSON
=
JSONObject
.
parseObject
(
res
);
JSONObject
resonseJSON
=
JSONObject
.
parseObject
(
res
);
JSONObject
jsonData
=
resonseJSON
.
getJSONObject
(
"Data"
);
JSONObject
jsonData
=
resonseJSON
.
getJSONObject
(
"Data"
);
String
retCode
=
(
String
)
jsonData
.
get
(
"retCode"
);
String
retCode
=
(
String
)
jsonData
.
get
(
"retCode"
);
if
(
retCode
.
equals
(
"0000"
))
{
if
(
retCode
.
equals
(
"0000"
))
{
return
jsonData
;
return
jsonData
;
}
}
log
.
warn
(
"
查询宁波银行接口状态码异常 retCode"
+
retCode
);
log
.
warn
(
"
getNbCbResponseData查询宁波银行接口状态码异常productId:{}, serviceID:{}, parma:{},retCode:{}"
,
productId
,
serviceID
,
jsonString
,
retCode
);
return
null
;
return
null
;
}
}
public
JSONObject
getNbCbResponseData2
(
String
productId
,
String
serviceID
,
String
jsonString
)
throws
Exception
{
public
JSONObject
getNbCbResponseData2
(
String
productId
,
String
serviceID
,
String
jsonString
)
throws
Exception
{
log
.
info
(
"
查询宁波银行接口
productId:{}, serviceID:{}, parma:{}"
,
productId
,
serviceID
,
jsonString
);
log
.
info
(
"
getNbCbResponseData2查询宁波银行接口
productId:{}, serviceID:{}, parma:{}"
,
productId
,
serviceID
,
jsonString
);
String
appKey
=
getAppKey
(
jsonString
);
String
appKey
=
getAppKey
(
jsonString
);
String
res
=
OpenSDK
.
send
(
appKey
,
productId
,
serviceID
,
jsonString
);
String
res
=
OpenSDK
.
send
(
appKey
,
productId
,
serviceID
,
jsonString
);
log
.
info
(
"
查询宁波银行接口
productId:{}, serviceID:{}, parma:{}, response:{}"
,
productId
,
serviceID
,
jsonString
,
res
);
log
.
info
(
"
getNbCbResponseData2查询宁波银行接口
productId:{}, serviceID:{}, parma:{}, response:{}"
,
productId
,
serviceID
,
jsonString
,
res
);
JSONObject
resonseJSON
=
JSONObject
.
parseObject
(
res
);
JSONObject
resonseJSON
=
JSONObject
.
parseObject
(
res
);
return
resonseJSON
.
getJSONObject
(
"Data"
);
return
resonseJSON
.
getJSONObject
(
"Data"
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment