待办OA优化url转码

This commit is contained in:
weiyunlong 2024-11-11 14:15:10 +08:00
parent f3c6c7d0db
commit 83906c76ff
1 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,8 @@ import kd.bos.workflow.service.WorkflowService;
import kd.bos.workflow.service.impl.ServiceFactory; import kd.bos.workflow.service.impl.ServiceFactory;
import shkd.utils.OAUtils; import shkd.utils.OAUtils;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
@ -64,6 +66,14 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler {
} }
//获取Url //获取Url
String url = toDoInfo.getUrl(); // 链接 String url = toDoInfo.getUrl(); // 链接
try {
url = URLEncoder.encode(url, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url;
//获取任务创建人 //获取任务创建人
Long startUserId = messageContext.getStartUserId(); // 审批实例发起人id Long startUserId = messageContext.getStartUserId(); // 审批实例发起人id
DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user"); DynamicObject startUser = BusinessDataServiceHelper.loadSingle(startUserId, "bos_user");