|
|
@@ -290,6 +290,18 @@ public class ThirdToken {
|
|
290
|
290
|
resJson = JSONObject.parseObject(resJson.getString("data"));
|
|
291
|
291
|
token=resJson.getString("token");
|
|
292
|
292
|
}
|
|
|
293
|
+ }
|
|
|
294
|
+ if(kasid==Iot.kfgd) {
|
|
|
295
|
+ String url = "http://kfyd.kfkj8021.com/prod-api/ec/getBoToken";
|
|
|
296
|
+ logger.info("kfgd queryAuthToken>>>"+url);
|
|
|
297
|
+ Map<String, Object> body = new HashMap<>();
|
|
|
298
|
+ body.put("appId", "asdgkkjhnhu9642");
|
|
|
299
|
+ body.put("password", "jbkbhcfshhj9853");
|
|
|
300
|
+ String content=HttpUtil.createPost(url).body(JSONObject.toJSONString(body), "application/json").execute().body();
|
|
|
301
|
+ logger.info("kfgd>>"+content);
|
|
|
302
|
+ JSONObject resJson = JSONObject.parseObject(content);
|
|
|
303
|
+ token = resJson.getString("token");
|
|
|
304
|
+ logger.info(token);
|
|
293
|
305
|
}
|
|
294
|
306
|
return token;
|
|
295
|
307
|
}
|