diff --git a/mailbox-lan/src/main/java/com/biutag/lan/controller/ApiV1Controller.java b/mailbox-lan/src/main/java/com/biutag/lan/controller/ApiV1Controller.java index b65e1ad..e2f5557 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/controller/ApiV1Controller.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/controller/ApiV1Controller.java @@ -224,6 +224,14 @@ public class ApiV1Controller { } mail.setVerifyAttachments(array.toJSONString()); } + if (StrUtil.isNotBlank(mail.getInterviewAttachments())) { + JSONArray array = JSON.parseArray(mail.getInterviewAttachments()); + for (int i = 0; i < array.size(); i++) { + JSONObject jsonObject = array.getJSONObject(i); + jsonObject.put("filepath", "http://65.47.60.145/lan-api/api/file/stream/" + jsonObject.getString("filepath")); + } + mail.setInterviewAttachments(array.toJSONString()); + } mailDomain.setMail(mail); mailDomain.setFlows(flowService.list(mailId)); mailDomain.setApprovals(mailApprovalService.list(mailId));