跳到主要内容

带token免登录

https://boot3.jeecg.com/tokenLogin?loginToken={Token值}&info={参数json,需要encode}

具体逻辑可以看代码: src/views/sys/login/TokenLoginPage.vue

参考邮件通知跳转逻辑

    /**
* 获取链接地址
* @param data
* @return
*/
private String getEmailHrefUrl(Map<String, Object> data){
String domain = getPcDomainUrl();
String url = domain + "/tokenLogin";
try {
url+="?loginToken="+CommonConstant.LOGIN_TOKEN;
Object msgAbstract = data.get(CommonConstant.NOTICE_MSG_SUMMARY);
if(msgAbstract!=null){
url+="&info=" + URLEncoder.encode(msgAbstract.toString(), "UTF-8");
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return url;
}


/**
* 前端路由跳转需要的参数信息-节点相关的信息
*
* @param executionEntity
* @return
*/
public String getFormDetailRouteInfo(ExecutionEntity executionEntity) {
JSONObject msgAbstract = new JSONObject();
msgAbstract.put("taskId", executionEntity.getActivityId());
msgAbstract.put("procInsId", executionEntity.getProcessInstanceId());
//如果只是查看流程详情的任务节点,需要单独设置标识
msgAbstract.put("taskDetail", true);
return msgAbstract.toJSONString();
}