提交 d8ba5e78 authored 作者: inroi's avatar inroi

微调

上级 67e8c249
......@@ -43,22 +43,22 @@ public class KingdeeApiClient {
long beginTime=System.currentTimeMillis();
//生产环境
IdentifyInfo identifyInfo = new IdentifyInfo() {};
/*IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo");
identifyInfo.setAppSecret("7e4a4779a554403eb2189bf3841552e3");
identifyInfo.setServerUrl("http://10.10.1.212/k3cloud/");
identifyInfo.setdCID("62f50a9ea1ece4");
identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");
identifyInfo.setUserName("Administrator");*/
//测试环境
/*IdentifyInfo identifyInfo = new IdentifyInfo() {};
IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo");
identifyInfo.setAppSecret("7e4a4779a554403eb2189bf3841552e3");
identifyInfo.setServerUrl("http://10.10.1.212/k3cloud/");
identifyInfo.setdCID("62fa11f8d7448e");
identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");*/
identifyInfo.setUserName("Administrator");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
T send = k3CloudApi.execute(servicename, parameters, returnType);
......
......@@ -73,19 +73,15 @@ public class SecurityToolsTest {
//测试
IdentifyInfo identifyInfo = new IdentifyInfo() {
};
identifyInfo.setAppId("232962_41bu3ZGsTPBf1b+uRdTN7YUGTiT86PLH");
identifyInfo.setAppSecret("d2712e77b46843faaa85cd4b74147239");
identifyInfo.setServerUrl("https://basicsemi.test.ik3cloud.com/k3cloud/");
identifyInfo.setdCID("20210526143523305");
identifyInfo.setAppId("232190_5d4pQbjpRvp86VypX3TD1dXJUKXc4ppo");
identifyInfo.setAppSecret("7e4a4779a554403eb2189bf3841552e3");
identifyInfo.setServerUrl("https://218.17.129.243:8090/K3Cloud/");
identifyInfo.setdCID("62fa11f8d7448e");
identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
RepoResult repoResult = k3CloudApi.CheckAuthInfo();
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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论