Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
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 0cb2c14c
authored
Jan 04, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
测试获取私钥方法 yangll
1 parent
1fbf4641
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/OpenApiServiceImpl.java
rpc-openplatform-container/src/test/java/cn/com/glsx/openplatform/service/OpenApiServiceImplTest.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/OpenApiServiceImpl.java
View file @
0cb2c14
...
@@ -87,7 +87,7 @@ public class OpenApiServiceImpl implements OpenApiService {
...
@@ -87,7 +87,7 @@ public class OpenApiServiceImpl implements OpenApiService {
log
.
info
(
"rpc==getPrivateSecret开始==appid:"
+
appId
);
log
.
info
(
"rpc==getPrivateSecret开始==appid:"
+
appId
);
//查询客户信息
//查询客户信息
String
privateKey
=
customerMapper
.
getPrivateSecret
(
appId
);
String
privateKey
=
customerMapper
.
getPrivateSecret
(
appId
);
log
.
info
(
"rpc==getPrivateSecret
开始==appid
:"
+
privateKey
);
log
.
info
(
"rpc==getPrivateSecret
结束==privateKey
:"
+
privateKey
);
return
privateKey
;
return
privateKey
;
}
}
...
...
rpc-openplatform-container/src/test/java/cn/com/glsx/openplatform/service/OpenApiServiceImplTest.java
0 → 100644
View file @
0cb2c14
package
cn
.
com
.
glsx
.
openplatform
.
service
;
import
cn.com.glsx.openplatform.Main
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
javax.annotation.Resource
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
Main
.
class
)
public
class
OpenApiServiceImplTest
{
@Resource
private
OpenApiService
openApiService
;
@Test
public
void
getPrivateSecret
()
{
String
privateSecret
=
openApiService
.
getPrivateSecret
(
100057
);
System
.
out
.
println
(
"privateSecret = ======"
+
privateSecret
);
}
}
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