|
@@ -113,7 +113,12 @@ public class AppEventServiceImpl implements AppEventService {
|
|
|
item.setAttachPath(urlPrefix + item.getAttachPath());
|
|
|
}
|
|
|
});
|
|
|
- appEventSalBO.getAttachsMpf().forEach(item -> item.setAttachPath(MapUtils.getString(keyMap, "appUrl") + item.getAttachPath()));
|
|
|
+// appEventSalBO.getAttachsMpf().forEach(item -> item.setAttachPath(MapUtils.getString(keyMap, "appUrl") + item.getAttachPath()));
|
|
|
+ appEventSalBO.getAttachsMpf().forEach(item -> {
|
|
|
+ if (!"TT_1".equals(item.getBusSource())) {
|
|
|
+ item.setAttachPath(MapUtils.getString(keyMap, "appUrl") + item.getAttachPath());
|
|
|
+ }
|
|
|
+ });
|
|
|
return AjaxResult.success(appEventSalBO);
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage());
|
|
@@ -157,6 +162,8 @@ public class AppEventServiceImpl implements AppEventService {
|
|
|
appDataTAttach.setAttachPath(DH1 + appDataTAttach.getAttachPath() + "?token=" + token);
|
|
|
} else if ("DH_2".equals(appDataTAttach.getBusSource())) {
|
|
|
appDataTAttach.setAttachPath(DH2 + appDataTAttach.getAttachPath());
|
|
|
+ } else if ("TT_1".equals(appDataTAttach.getBusSource())) {
|
|
|
+
|
|
|
} else if (appDataTAttach.getAttachPath().endsWith(".jpg") || appDataTAttach.getAttachPath().endsWith(".gif") || appDataTAttach.getAttachPath().endsWith(".png")
|
|
|
|| appDataTAttach.getAttachPath().endsWith(".jpeg") || appDataTAttach.getAttachPath().endsWith(".bmp") || appDataTAttach.getAttachPath().endsWith(".webp")
|
|
|
|| appDataTAttach.getAttachPath().endsWith(".psd") || appDataTAttach.getAttachPath().endsWith(".svg") || appDataTAttach.getAttachPath().endsWith(".tiff")
|