提交 0ffbd902 authored 作者: 李勤's avatar 李勤

日志

上级 beac404a
......@@ -194,12 +194,13 @@ public class HttpUtil {
public static String login(String serverUrl) {
try {
Map<String, Object> request = new HashMap<>(1);
request.put("parameters", new Object[]{"6441e19c2fbbe1", "Administrator", "sa123.sa", 2052});
request.put("parameters", new Object[]{"6476c5b6077e71", "Administrator", "sa123.sa", 2052});
String url = serverUrl + "Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc";
String requestStr = JsonUtil.toString(request);
ResponseEntity<String> responseEntity = HttpUtil.httpPost(url, requestStr);
log.info("login", responseEntity.getBody());
if (responseEntity.getStatusCode() == HttpStatus.OK) {
Map<String, Object> map = JsonUtil.toMap(responseEntity.getBody(), String.class, Object.class);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论