|
楼主 |
发表于 2019-12-9 17:17:20
|
显示全部楼层
这个代码好像不需要登录,可以直接访问action
- // 调用ntLoginAction不用密码登录
- Action action = new Action();
- action.setProcess("/SA/OPM/system/systemProcess");
- action.setActivity("mainActivity");
- action.setName("ntLoginAction");
- action.setParameter("name", username);
- action.setParameter("loginDate", new java.sql.Date(System.currentTimeMillis()));
- action.setParameter("ip", "127.0.0.1");
- action.setParameter("options", new HashMap<String, Object>());
- action.setParameter("lang", language);
- ActionResult ar = ActionEngine.invokeActions(JustepConfig.getBusinessServer() + "/login2", null, action.asXML().getBytes("UTF-8"), null, ActionUtils.JSON_CONTENT_TYPE,
- ActionUtils.XML_CONTENT_TYPE, null, language, "post", null);
复制代码
|
|