fix
Helius
2022-07-12 ccafbd516a315f23214aea124f41d47ea47b69f7
src/main/java/com/xcong/farmer/cms/core/node/Template.java
@@ -70,8 +70,20 @@
            if (!new Integer(1).equals(page)) {
                this.name = name + "_" + page;
            }
        } else {
        } else if ("search".equals(templateType)){
            Object templateName = system.get("templateName");
            if (templateName != null) {
                this.name = String.valueOf(templateName);
            } else {
                this.name = "search";
            }
        } else if ("message".equals(templateType)) {
            Object templateName = system.get("templateName");
            if (templateName != null) {
                this.name = String.valueOf(templateName);
            } else {
                this.name = "message";
            }
        }
    }
@@ -97,7 +109,7 @@
            sb.append(partNode.getHtml());
        }
        document = Jsoup.parse(sb.toString());
        String outPath = path(outputPath);
        String outPath = path(outputPath) + system.get("companyCode");
        String html = document.html();
        try {
@@ -107,7 +119,7 @@
                file.mkdirs();
            }
            FileOutputStream outputStream = new FileOutputStream(path +this.name + suffix);
            FileOutputStream outputStream = new FileOutputStream(path + this.name + suffix);
            outputStream.write(html.getBytes());
            outputStream.close();
        } catch (IOException e) {