提交 25c613e9 authored 作者: 李炎's avatar 李炎

微调

上级 3598af33
......@@ -58,7 +58,7 @@ public class CategoryDao {
KingdeeK3CloudApiClient client2;
KingdeeK3CloudApiClient client3;
Boolean result = false;
private Boolean IsCloseKingDee = false;
// private Boolean IsCloseKingDee = false;
String loginResult;
@Autowired
IImsInitConnectParmService iImsInitConnectParmService;
......
......@@ -33,16 +33,43 @@ public class KingdeeApiClient {
return api.execute(servicename, parameters, returnType);
}
private String checkAuthInfo() {
try {
return api.CheckAuthInfo().getResult().toString();
} catch (Exception e) {
e.printStackTrace();
return e.getMessage();
}
}
public static void main(String[] args) throws Exception {
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("MES");
K3CloudApi api = new K3CloudApi(identifyInfo);
RepoResult repoResult = api.CheckAuthInfo();
RepoStatus responseStatus = repoResult.getResponseStatus();
System.out.println(":" + repoResult.getResult());
System.out.println("is" + responseStatus.isIsSuccess());
}
public Boolean login(String dbId, String userName, String password, int lcid) throws Exception {
try {
IdentifyInfo iden = new IdentifyInfo();
iden.setUserName("admin");
iden.setAppId("267026_TedP2+IJznBfWUXEX4SB78+L4J07QsKo");
iden.setAppId("267026_TedP2+lJznBfWUXEX4SB78+L4J07QsKo");
iden.setAppSecret("4db4e81eeb65ada35ff203b181552de87c2c1c99");
iden.setdCID("6476c5b6077e71");
iden.setlCID(2052);
iden.setServerUrl(_serverUrl);
api = new K3CloudApi(iden);
api = new K3CloudApi();
RepoResult repoResult = api.CheckAuthInfo();
RepoStatus responseStatus = repoResult.getResponseStatus();
boolean isSuccess = responseStatus.isIsSuccess();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论