Commit 0cb2c14c by 杨林龙

测试获取私钥方法 yangll

1 parent 1fbf4641
......@@ -87,7 +87,7 @@ public class OpenApiServiceImpl implements OpenApiService {
log.info("rpc==getPrivateSecret开始==appid:" + appId);
//查询客户信息
String privateKey = customerMapper.getPrivateSecret(appId);
log.info("rpc==getPrivateSecret开始==appid:" + privateKey);
log.info("rpc==getPrivateSecret结束==privateKey:" + privateKey);
return privateKey;
}
......
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);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!