Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
db374122
Commit
db374122
authored
Jul 01, 2020
by
panpp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除了ftl 的一处初始化
parent
09c59d77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
CmsParserUtil.java
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
+0
-11
No files found.
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
View file @
db374122
...
...
@@ -66,17 +66,7 @@ public class CmsParserUtil extends ParserUtil {
*/
public
static
void
generateList
(
CategoryEntity
column
,
int
articleIdTotal
)
throws
TemplateNotFoundException
,
MalformedTemplateNameException
,
ParseException
,
IOException
{
// 只初始化一次cfg
if
(
ftl
==
null
)
{
ftl
=
new
FileTemplateLoader
(
new
File
(
ParserUtil
.
buildTempletPath
()));
cfg
.
setTemplateLoader
(
ftl
);
}
// 移动端模板
try
{
Template
mobileTemplate
=
cfg
.
getTemplate
(
BasicUtil
.
getApp
().
getAppMobileStyle
()
+
File
.
separator
+
column
.
getCategoryListUrl
(),
Const
.
UTF8
);
// pc端模板
// 文章的栏目模型编号
String
columnContentModelId
=
column
.
getMdiyModelId
();
PageBean
page
=
new
PageBean
();
...
...
@@ -87,7 +77,6 @@ public class CmsParserUtil extends ParserUtil {
//获取总数
String
columnListPath
;
String
mobilePath
;
ModelEntity
contentModel
=
null
;
// 判断当前栏目是否有自定义模型
if
(
StringUtils
.
isNotBlank
(
columnContentModelId
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment