提交 77d7e39c authored 作者: inroi's avatar inroi

微调

上级 82b70244
...@@ -43,22 +43,22 @@ public class KingdeeApiClient { ...@@ -43,22 +43,22 @@ public class KingdeeApiClient {
long beginTime=System.currentTimeMillis(); long beginTime=System.currentTimeMillis();
//生产环境 //生产环境
IdentifyInfo identifyInfo = new IdentifyInfo() {}; /*IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo"); identifyInfo.setAppId("232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo");
identifyInfo.setAppSecret("7e4a4779a554403eb2189bf3841552e3"); identifyInfo.setAppSecret("7e4a4779a554403eb2189bf3841552e3");
identifyInfo.setServerUrl("http://10.10.1.212/k3cloud/"); identifyInfo.setServerUrl("http://10.10.1.212/k3cloud/");
identifyInfo.setdCID("62f50a9ea1ece4"); identifyInfo.setdCID("62f50a9ea1ece4");
identifyInfo.setlCID(2052); identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator"); identifyInfo.setUserName("Administrator");*/
//测试环境 //测试环境
/*IdentifyInfo identifyInfo = new IdentifyInfo() {}; IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("225533_53fA1cht1lH8S88GT/3ozxUK2t3b2AnE"); identifyInfo.setAppId("232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo");
identifyInfo.setAppSecret("bd70ee8503b24e8386022a360e057605"); identifyInfo.setAppSecret("7e4a4779a554403eb2189bf3841552e3");
identifyInfo.setServerUrl("https://jcg-666.test.ik3cloud.com/k3cloud/"); identifyInfo.setServerUrl("http://10.10.1.212/k3cloud/");
identifyInfo.setdCID("20210727181951968"); identifyInfo.setdCID("62fa11f8d7448e");
identifyInfo.setlCID(2052); identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");*/ identifyInfo.setUserName("Administrator");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo); K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
T send = k3CloudApi.execute(servicename, parameters, returnType); T send = k3CloudApi.execute(servicename, parameters, returnType);
......
...@@ -64,23 +64,33 @@ public class SecurityToolsTest { ...@@ -64,23 +64,33 @@ public class SecurityToolsTest {
public void test() throws Exception { public void test() throws Exception {
//生产 //生产
/*IdentifyInfo identifyInfo = new IdentifyInfo() {}; /*IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("225533_53fA1cht1lH8S88GT/3ozxUK2t3b2AnE"); identifyInfo.setAppId("232955_0ddBwZuI2mG+2eVOSf0sQcUISgx+2BlG");
identifyInfo.setAppSecret("bd70ee8503b24e8386022a360e057605"); identifyInfo.setAppSecret("175e9a5ed3b04f97a5c37aa01ce747d3");
identifyInfo.setServerUrl("https://jcg-666.ik3cloud.com/K3Cloud/"); identifyInfo.setServerUrl("http://192.168.2.26/k3cloud/");
identifyInfo.setdCID("20210727181855027"); identifyInfo.setdCID("6221b5ff539caa");
identifyInfo.setlCID(2052); identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");*/ identifyInfo.setUserName("Administrator");*/
//测试 //测试
IdentifyInfo identifyInfo = new IdentifyInfo() {}; IdentifyInfo identifyInfo = new IdentifyInfo() {
identifyInfo.setAppId("225533_53fA1cht1lH8S88GT/3ozxUK2t3b2AnE"); };
identifyInfo.setAppSecret("bd70ee8503b24e8386022a360e057605"); identifyInfo.setAppId("232962_41bu3ZGsTPBf1b+uRdTN7YUGTiT86PLH");
identifyInfo.setServerUrl("https://jcg-666.test.ik3cloud.com/k3cloud/"); identifyInfo.setAppSecret("d2712e77b46843faaa85cd4b74147239");
identifyInfo.setdCID("20210727181951968"); identifyInfo.setServerUrl("https://basicsemi.test.ik3cloud.com/k3cloud/");
identifyInfo.setdCID("20210526143523305");
identifyInfo.setlCID(2052); identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator"); identifyInfo.setUserName("Administrator");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo); K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
RepoResult repoResult = k3CloudApi.CheckAuthInfo(); RepoResult repoResult = k3CloudApi.CheckAuthInfo();
System.out.println(repoResult.getResponseStatus().isIsSuccess()); System.out.println(repoResult.getResponseStatus().isIsSuccess());
String sql = "select * from T_ENG_BOM where fid = 128462";
Object send = this.execute(k3CloudApi, "LQKJ.WebApi.Stub.CustomWebApiService.ExecuteDynamicObject,LQKJ.WebApi.Stub", new Object[]{sql}, Object.class);
System.out.println(send);
}
private <T> T execute(K3CloudApi k3CloudApi, String serviceName, Object[] parameters, Class<T> returnType) throws Exception {
return k3CloudApi.execute(serviceName, parameters, returnType);
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论