Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
240bc2a9
Commit
240bc2a9
authored
Dec 04, 2019
by
ms group dev
Browse files
搜索变量
parent
6b6c32e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
240bc2a9
...
@@ -417,7 +417,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
...
@@ -417,7 +417,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
//读取模板的分页数量
//读取模板的分页数量
int
size
=
BasicUtil
.
getInt
(
ParserUtil
.
SIZE
,
10
);
int
size
=
BasicUtil
.
getInt
(
ParserUtil
.
SIZE
,
10
);
try
{
try
{
size
=
TagParser
.
getPageSize
(
ParserUtil
.
read
(
ParserUtil
.
SEARCH
+
ParserUtil
.
HTM_SUFFIX
,
false
));
size
=
TagParser
.
getPageSize
(
ParserUtil
.
read
(
SEARCH
+
ParserUtil
.
HTM_SUFFIX
,
false
));
}
catch
(
TemplateNotFoundException
e1
)
{
}
catch
(
TemplateNotFoundException
e1
)
{
e1
.
printStackTrace
();
e1
.
printStackTrace
();
}
catch
(
MalformedTemplateNameException
e1
)
{
}
catch
(
MalformedTemplateNameException
e1
)
{
...
@@ -471,7 +471,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
...
@@ -471,7 +471,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
String
content
=
""
;
String
content
=
""
;
try
{
try
{
//根据模板路径,参数生成
//根据模板路径,参数生成
content
=
CmsParserUtil
.
generate
(
ParserUtil
.
SEARCH
+
ParserUtil
.
HTM_SUFFIX
,
map
,
isMobileDevice
(
request
));
content
=
CmsParserUtil
.
generate
(
SEARCH
+
ParserUtil
.
HTM_SUFFIX
,
map
,
isMobileDevice
(
request
));
}
catch
(
TemplateNotFoundException
e
)
{
}
catch
(
TemplateNotFoundException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
catch
(
MalformedTemplateNameException
e
)
{
}
catch
(
MalformedTemplateNameException
e
)
{
...
...
Write
Preview
Supports
Markdown
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