Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
cc247b68
提交
cc247b68
authored
11月 23, 2023
作者:
aiqingguo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
银行测试
Former-commit-id:
3ab04839
上级
931af657
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
121 行增加
和
1 行删除
+121
-1
ISFJ_v2_0_139_16_BAISC_JDK15.jar
performance-web/libs/gm/ISFJ_v2_0_139_16_BAISC_JDK15.jar
+0
-0
netsignapi.jar
performance-web/libs/gm/netsignapi.jar
+0
-0
openBasicSDK-2.1.230630.jar.REMOVED.git-id
...mance-web/libs/openBasicSDK-2.1.230630.jar.REMOVED.git-id
+2
-0
TempBankController.java
...m/clx/performance/controller/temp/TempBankController.java
+109
-0
TempController.java
...a/com/clx/performance/controller/temp/TempController.java
+2
-1
bank.txt
performance-web/src/main/resources/bank.txt
+2
-0
config.properties
performance-web/src/main/resources/config.properties
+6
-0
没有找到文件。
performance-web/libs/gm/ISFJ_v2_0_139_16_BAISC_JDK15.jar
0 → 100644
浏览文件 @
cc247b68
File added
performance-web/libs/gm/netsignapi.jar
0 → 100644
浏览文件 @
cc247b68
File added
performance-web/libs/openBasicSDK-2.1.230630.jar.REMOVED.git-id
0 → 100644
浏览文件 @
cc247b68
e7e5ce1bffab81e1bb99645731939ceb74c19037
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/controller/temp/TempBankController.java
0 → 100644
浏览文件 @
cc247b68
package
com
.
clx
.
performance
.
controller
.
temp
;
import
com.clx.performance.service.TempService
;
import
com.clx.performance.vo.pc.child.OrderChildLineStatisticsVO
;
import
com.msl.common.result.Result
;
import
com.nbcb.sdk.OpenSDK
;
import
com.openapi.sdk.test.Demo
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.net.URL
;
/**
* @Author: aiqingguo
* @Description: 临时接口
* @Date: 2023-8-21 12:10:16
* @Version: 1.0
*/
@Slf4j
@RestController
@RequestMapping
(
value
=
"/temp/bank"
)
public
class
TempBankController
{
@Autowired
private
TempService
tempService
;
@ApiOperation
(
value
=
"test"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/test"
,
method
=
RequestMethod
.
POST
)
public
Result
<
OrderChildLineStatisticsVO
>
test
()
throws
Exception
{
bankTest
();
return
Result
.
ok
();
}
private
void
bankTest
()
throws
Exception
{
String
priKey
=
"MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ"
;
OpenSDK
.
init
(
TempBankController
.
class
.
getClassLoader
().
getResource
(
"config.properties"
).
getPath
(),
priKey
);
String
res1
=
OpenSDK
.
sendFile
(
""
,
"open-filegateway"
,
TempBankController
.
class
.
getClassLoader
().
getResource
(
"bank.txt"
).
getPath
());
}
//
// public static void main(String[] args) {
//
// try {
// callBySepJson();
// //demo.callByBean();
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
//
// private static Log log = LogFactory.getLog(Demo.class);
// //商户私钥
// private static String priKey = "MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ";
// static {
//// // 初始化(只需在系统启动时初始化一次,config.properties的路径可以是绝对路径,也可以是当前工程的相对路径)
//// URL resource = TempBankController.class.getClassLoader().getResource("config.properties");
//// String path = resource.getPath();
////
//// System.out.println(TempBankController.class.getClassLoader().getResource("config.properties").getPath());
//
// OpenSDK.init(TempBankController.class.getClassLoader().getResource("config.properties").getPath(), priKey);
// }
//
// /**
// * @throws Exception
// */
// public static void callBySepJson() throws Exception {
// /*
// * dataJson 是放置具体交易请求业务报文,dataJson报文结构如下: {"Data":{"app_name":"1"}}
// */
//// String dataJson="";
//// // 发送请求并获取响应(第一个填入productId,第二个填入serviceId)
//// String res = OpenSDK.send("", "", dataJson);
//// if (log.isDebugEnabled()) {
//// log.debug("res: " + res);
//// }
//
// //上传文件
// String res1 = OpenSDK.sendFile("", "open-filegateway",TempBankController.class.getClassLoader().getResource("bank.txt").getPath());
//
// System.out.println(res1);
// //下载文件
//// String res = OpenSDK.sendFileDownload( "productId","fcd47917-bc9c-4c11-b217-f7095f5384fe","D:\\ab\\test");
// }
//
// /**
// * JavaBean方式(通过产品SDK提供的JavaBean)
// *
// * @throws Exception
// */
// public void callByBean() throws Exception {
//
// }
}
performance-web/src/main/java/com/clx/performance/controller/temp/TempController.java
浏览文件 @
cc247b68
...
...
@@ -34,7 +34,7 @@ public class TempController {
@ApiOperation
(
value
=
"test"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/test"
,
method
=
RequestMethod
.
GE
T
)
@RequestMapping
(
value
=
"/test"
,
method
=
RequestMethod
.
POS
T
)
public
Result
<
OrderChildLineStatisticsVO
>
test
(
Integer
sendAddressId
,
Integer
receiveAddressId
)
{
return
Result
.
ok
(
carrierOrderChildService
.
getLineStatistics
(
sendAddressId
,
receiveAddressId
));
...
...
@@ -69,4 +69,5 @@ public class TempController {
return
Result
.
ok
();
}
}
performance-web/src/main/resources/bank.txt
0 → 100644
浏览文件 @
cc247b68
123
\ No newline at end of file
performance-web/src/main/resources/config.properties
0 → 100644
浏览文件 @
cc247b68
APP_KEY
=
54b3e05c-7983-4e6c-8920-f9ab8a0004a6
PUBLIC_URL
=
http://cz-test.nbcb.com.cn:7070/nbcb/api
PUBLIC_KEY
=
MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ
CONNECT_TIMEOUT
=
10000
READ_TIMEOUT
=
20000
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论