提交 115c3dfc authored 作者: inroi's avatar inroi

增加登录的用户名和密码

上级 e8044144
......@@ -53,8 +53,8 @@ public class ToDoTaskServiceImpl implements IToDoTaskService {
}
public RestResponse toDoTaskSynchronization(ResultSet rs) throws SQLException {
String url = "http://172.16.1.78:81";
String json = "{\"userName\":\"hrrest\",\"password\":\"hrhdrest123\"}";
String url = "http://10.10.12.11";
String json = "{\"userName\":\"admin1\",\"password\":\"12345678\"}";
String toekn = HttpClientUtil.sendPost(url + "/seeyon/rest/token", json);
Map<String, Object> temp = JsonUtil.toMap(toekn, String.class, Object.class);
if (CollectionUtils.isEmpty(temp) && !temp.containsKey("id")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论