Helius
2022-07-07 679b072c926361039c5b9f47cf99f015a1eefd01
src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java
@@ -7,6 +7,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.Map;
@@ -45,4 +46,14 @@
        }
        cfg.process(data, templateName);
    }
    @Override
    public void indexProcess(@NotNull Map<String, Object> data, String templateName) {
        if (StrUtil.isEmpty(templateName)) {
            templateName = "index.html";
        }
        data.put("companyId", 23L);
        cfg.process(data, templateName);
    }
}