From bfcca60e2dbf84bce27def31f92e1c99f94a1d6e Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 19 九月 2024 18:38:51 +0800 Subject: [PATCH] http tag --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/service/impl/HttpTokenServiceImpl.java | 26 -------------------------- 1 files changed, 0 insertions(+), 26 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/service/impl/HttpTokenServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/service/impl/HttpTokenServiceImpl.java index 48f459c..bd6c61d 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/service/impl/HttpTokenServiceImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/service/impl/HttpTokenServiceImpl.java @@ -65,32 +65,6 @@ return httpTokenDao.selectOne(wrapper); } - - @Override - public void updateToken(String clientId) { - Map<String, String> params = new HashMap<>(1); - params.put("timeout", "30000"); - HttpTokenEntity entity = httpTokenDao.selectOne(new QueryWrapper<HttpTokenEntity>().eq("client_id", clientId)); - Map<String, String> dataJson = new HashMap<>(2); - String url = entity.getLoginUrl(); - String userName = entity.getUsername(); - String password = entity.getPassword(); - String prvsetName = entity.getPrvsetName(); - String projectName = entity.getProjectName(); - String platform = entity.getPlatform(); - dataJson.put("username", userName); - dataJson.put("password", password); - dataJson.put("prvset_name", prvsetName); - dataJson.put("project_name", projectName); - dataJson.put("platform", platform); - //查询token的请求 - String responseStr = httpsRequest.doPostToken(url, params, JSONObject.toJSONString(dataJson), "utf-8"); - //插入token和更新时间 - entity.setToken(responseStr); - entity.setUpdateTime(new Date()); - httpTokenDao.update(entity, new QueryWrapper<HttpTokenEntity>().eq("client_id", clientId)); - } - @Override public String queryToken(String clientId) { return httpTokenDao.selectOne(new QueryWrapper<HttpTokenEntity>().eq("client_id", clientId)).getToken(); -- Gitblit v1.9.3