提交 36b96c63 authored 作者: aiqingguo's avatar aiqingguo

银行测试

上级 29d13bd3
......@@ -44,21 +44,13 @@ public class TempBankController {
private void bankTest() throws Exception {
String priKey = "MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgTt6OadouxxxSDg/0SZdOIBqtnFGKrpwmL+quEUf+hfSgCgYIKoEcz1UBgi2hRANCAAQGHNN2NO7btp+w1248yk98E0asGC8sG0bmIzdom4M0xp3vc4IfXjmZ8omUz4oVcjzAuyMSSpJM6uPLcU1SH4HZ";
InputStream inputStream1 = TempBankController.class.getResourceAsStream("config.properties");
if (inputStream1 != null) {
log.info("存在1");
}
InputStream inputStream = TempBankController.class.getClassLoader().getResourceAsStream("config.properties");
if (inputStream != null) {
log.info("存在2");
OpenSDK.init(inputStream, priKey);
try (FileOutputStream fos = new FileOutputStream("a.txt")) {
try (FileOutputStream fos = new FileOutputStream("/app/a.txt")) {
fos.write("123 测试".getBytes());
String res1 = OpenSDK.sendFile("", "open-filegateway",fos.toString());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论