|
|
@ -368,8 +368,12 @@ public class HistoryTemplateListCache implements CallbackEvent { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes); |
|
|
|
ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes); |
|
|
|
// todo readStream 这个行为应该上升到 BaseBook 上
|
|
|
|
BaseBook target = historyList.get(i).getTarget(); |
|
|
|
((IOFile) historyList.get(i).getTarget()).readStream(inputStream); |
|
|
|
if (target != null) { |
|
|
|
|
|
|
|
// todo readStream 这个行为应该上升到 BaseBook 上
|
|
|
|
|
|
|
|
((IOFile) target).readStream(inputStream); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 如果 target == null 那么这个模板是被模板内存优化功能处理过的,不用处理
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|