提交 58d79a91 authored 作者: inroi's avatar inroi

微调

上级 cf529a3a
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.jeecg.modules.iost.ims.client; package org.jeecg.modules.iost.ims.client;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.kingdee.bos.webapi.entity.IdentifyInfo;
import com.kingdee.bos.webapi.sdk.K3CloudApi;
import kingdee.bos.json.JSONObject; import kingdee.bos.json.JSONObject;
import kingdee.bos.webapi.client.ApiHttpClient; import kingdee.bos.webapi.client.ApiHttpClient;
import kingdee.bos.webapi.client.ApiRequest; import kingdee.bos.webapi.client.ApiRequest;
...@@ -37,26 +30,12 @@ public class KingdeeApiClient { ...@@ -37,26 +30,12 @@ public class KingdeeApiClient {
map2 = new HashMap(); map2 = new HashMap();
map2.put("don_delete!", "don_delete!"); map2.put("don_delete!", "don_delete!");
} }
/*ApiRequest<T> request = this.createRequest(servicename, parameters, returnType); ApiRequest<T> request = this.createRequest(servicename, parameters, returnType);
ApiHttpClient<T> httpClient = new ApiHttpClient(); ApiHttpClient<T> httpClient = new ApiHttpClient();
request.setListener(httpClient);*/ request.setListener(httpClient);
long beginTime = System.currentTimeMillis(); long beginTime = System.currentTimeMillis();
T send = httpClient.Send(request, returnType);
//测试环境
IdentifyInfo identifyInfo = new IdentifyInfo() {
};
identifyInfo.setAppId("234279_W+8P58FOSIl839wH1Z4pTY/v0j2W5OrE");
identifyInfo.setAppSecret("b1e10c8eba814adbb15eb4b3efc200e6");
identifyInfo.setServerUrl("http://192.168.36.230/k3cloud/");
identifyInfo.setdCID("62e24a3cb44ac0");
identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
T send = k3CloudApi.execute(servicename, parameters, returnType);
long Costime = System.currentTimeMillis() - beginTime; long Costime = System.currentTimeMillis() - beginTime;
System.out.println("--------->" + Costime);
if (!ObjectUtils.isEmpty(map2)) { if (!ObjectUtils.isEmpty(map2)) {
map2.put("Costime", Costime); map2.put("Costime", Costime);
ThreadLocalConfig.set(map2); ThreadLocalConfig.set(map2);
......
spring: spring:
profiles: profiles:
active: docker active: test
swagger: swagger:
production: false production: false
basic: basic:
......
package org.jeecg; package org.jeecg;
import com.kingdee.bos.webapi.entity.IdentifyInfo;
import com.kingdee.bos.webapi.entity.RepoResult;
import com.kingdee.bos.webapi.sdk.K3CloudApi;
import kingdee.bos.webapi.client.K3CloudApiClient; import kingdee.bos.webapi.client.K3CloudApiClient;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
...@@ -58,6 +61,32 @@ public class SecurityToolsTest { ...@@ -58,6 +61,32 @@ public class SecurityToolsTest {
@Autowired @Autowired
CategoryDao categoryDao; CategoryDao categoryDao;
@Test
public void test() throws Exception {
//生产
/*IdentifyInfo identifyInfo = new IdentifyInfo() {};
identifyInfo.setAppId("232955_0ddBwZuI2mG+2eVOSf0sQcUISgx+2BlG");
identifyInfo.setAppSecret("175e9a5ed3b04f97a5c37aa01ce747d3");
identifyInfo.setServerUrl("http://192.168.2.26/k3cloud/");
identifyInfo.setdCID("6221b5ff539caa");
identifyInfo.setlCID(2052);
identifyInfo.setUserName("Administrator");*/
//测试
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");
K3CloudApi k3CloudApi = new K3CloudApi(identifyInfo);
RepoResult repoResult = k3CloudApi.CheckAuthInfo();
System.out.println(repoResult.getResponseStatus().isIsSuccess());
}
/*/D:/gitCode/OZT-Integration/jeecg-boot-module-system/target/test-classes/*/ /*/D:/gitCode/OZT-Integration/jeecg-boot-module-system/target/test-classes/*/
@Test @Test
public void testUpdate() { public void testUpdate() {
...@@ -131,10 +160,5 @@ public class SecurityToolsTest { ...@@ -131,10 +160,5 @@ public class SecurityToolsTest {
} }
} }
@Test
public void test01() {
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论