Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
ec8ebe12
提交
ec8ebe12
authored
12月 05, 2023
作者:
aiqingguo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'demo_bank_20231123' into test
上级
f0d0b123
518bfdcc
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
43 行增加
和
6 行删除
+43
-6
NbBankController.java
...x/performance/controller/thirdparty/NbBankController.java
+43
-6
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/thirdparty/NbBankController.java
浏览文件 @
ec8ebe12
...
@@ -19,9 +19,46 @@ import java.util.Map;
...
@@ -19,9 +19,46 @@ import java.util.Map;
@Api
(
tags
=
"宁波银行回调"
)
@Api
(
tags
=
"宁波银行回调"
)
public
class
NbBankController
{
public
class
NbBankController
{
/**
* 解密后
* {
* "data": {
* "clearDate": "20231205",
* "merId": "EFT33021200556315",
* "merSeqNo": "20231205165038",
* "payMethod": "L",
* "pyerInfList": [
* {
* "coreSeqNo": "",
* "customerId": "",
* "pyerAcctBankName": "",
* "pyerAcctBankNo": "",
* "pyerAcctName": "黑玫瑰",
* "pyerAcctNo": "86041110000076809",
* "signNo": "00",
* "transAmt": "0.01",
* "transDtTm": "2023-12-05 16:54:22"
* }
* ],
* "realTrxAmt": "0.01",
* "transDate": "20231205",
* "transSeqNo": "2023120516503906838128gg6DOzjP",
* "transStatus": "00",
* "trxAmt": "0.01"
* },
* "head": {
* "rqsJrnlNo": "16071726224843844",
* "rspCode": "000000",
* "rspDate": "2023-12-05",
* "rspMsg": "处理成功",
* "rspTime": "17:13:43:943"
* }
* }
*/
@ApiOperation
(
value
=
"notify"
,
notes
=
"<br>By:艾庆国"
)
@ApiOperation
(
value
=
"notify"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/notify"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/notify"
,
method
=
RequestMethod
.
POST
)
public
SDKResponse
notify
(
@RequestBody
Map
<
String
,
Object
>
body
)
throws
Exception
{
public
Object
notify
(
@RequestBody
Map
<
String
,
Object
>
body
)
throws
Exception
{
log
.
info
(
"宁波银行回调, data:{}"
,
JSON
.
toJSONString
(
body
));
log
.
info
(
"宁波银行回调, data:{}"
,
JSON
.
toJSONString
(
body
));
...
@@ -51,7 +88,7 @@ public class NbBankController {
...
@@ -51,7 +88,7 @@ public class NbBankController {
return
getResultSuc
();
return
getResultSuc
();
}
}
private
SDKResponse
getResultSuc
()
throws
Exception
{
private
Object
getResultSuc
()
throws
Exception
{
Map
<
String
,
String
>
data
=
new
HashMap
<>();
Map
<
String
,
String
>
data
=
new
HashMap
<>();
data
.
put
(
"errorCode"
,
"000000"
);
data
.
put
(
"errorCode"
,
"000000"
);
...
@@ -73,13 +110,13 @@ public class NbBankController {
...
@@ -73,13 +110,13 @@ public class NbBankController {
SDKResponse
result
=
NBOpenSDK
.
encryptMessage
(
request
);
SDKResponse
result
=
NBOpenSDK
.
encryptMessage
(
request
);
log
.
info
(
"加密后: "
+
JSON
.
toJSONString
(
result
));
log
.
info
(
"加密后: "
+
JSON
.
toJSONString
(
result
));
return
result
;
return
result
.
getData
()
;
}
}
private
SDKResponse
getResultFail
()
throws
Exception
{
private
Object
getResultFail
()
throws
Exception
{
Map
<
String
,
String
>
data
=
new
HashMap
<>();
Map
<
String
,
String
>
data
=
new
HashMap
<>();
data
.
put
(
"errorCode"
,
"ER001"
);
data
.
put
(
"errorCode"
,
"ER001"
);
data
.
put
(
"errorMsg"
,
"
成功
"
);
data
.
put
(
"errorMsg"
,
"
失败
"
);
RequestApiData
requestApiData
=
new
RequestApiData
();
RequestApiData
requestApiData
=
new
RequestApiData
();
requestApiData
.
setAppkey
(
"77667c76_3503_4c04_95f7_fc10938c7942"
);
requestApiData
.
setAppkey
(
"77667c76_3503_4c04_95f7_fc10938c7942"
);
...
@@ -97,7 +134,7 @@ public class NbBankController {
...
@@ -97,7 +134,7 @@ public class NbBankController {
SDKResponse
result
=
NBOpenSDK
.
encryptMessage
(
request
);
SDKResponse
result
=
NBOpenSDK
.
encryptMessage
(
request
);
log
.
info
(
"加密后: "
+
JSON
.
toJSONString
(
result
));
log
.
info
(
"加密后: "
+
JSON
.
toJSONString
(
result
));
return
result
;
return
result
.
getData
()
;
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论