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
3e26c01c
Commit
3e26c01c
authored
Jan 26, 2021
by
wujj
Browse files
分类获取、文章详情字数限制
parent
d706b1f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/web/CategoryAction.java
View file @
3e26c01c
...
@@ -129,7 +129,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{
...
@@ -129,7 +129,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{
if
(
category
.
getId
()==
null
)
{
if
(
category
.
getId
()==
null
)
{
return
ResultData
.
build
().
error
();
return
ResultData
.
build
().
error
();
}
}
CategoryEntity
_category
=
(
CategoryEntity
)
categoryBiz
.
get
Entity
(
Integer
.
parseInt
(
category
.
getId
())
)
;
CategoryEntity
_category
=
(
CategoryEntity
)
categoryBiz
.
get
ById
(
category
.
getId
());
return
ResultData
.
build
().
success
(
_category
);
return
ResultData
.
build
().
success
(
_category
);
}
}
...
...
src/main/java/net/mingsoft/cms/action/web/ContentAction.java
View file @
3e26c01c
...
@@ -117,7 +117,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
...
@@ -117,7 +117,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
if
(
content
.
getId
()==
null
)
{
if
(
content
.
getId
()==
null
)
{
return
ResultData
.
build
().
error
();
return
ResultData
.
build
().
error
();
}
}
ContentEntity
_content
=
(
ContentEntity
)
contentBiz
.
get
Entity
(
Integer
.
parseInt
(
content
.
getId
())
)
;
ContentEntity
_content
=
(
ContentEntity
)
contentBiz
.
get
ById
(
content
.
getId
())
;
;
return
ResultData
.
build
().
success
(
_content
);
return
ResultData
.
build
().
success
(
_content
);
}
}
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
3e26c01c
...
@@ -272,7 +272,7 @@
...
@@ -272,7 +272,7 @@
scaleEnabled
:
true
,
scaleEnabled
:
true
,
compressSide
:
0
,
compressSide
:
0
,
maxImageSideLength
:
1000
,
maxImageSideLength
:
1000
,
maximumWords
:
2
000
,
maximumWords
:
100
000
,
initialFrameWidth
:
'
100
%'
,
initialFrameWidth
:
'
100
%'
,
initialFrameHeight
:
400
,
initialFrameHeight
:
400
,
serverUrl
:
ms
.base
+
"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,fileUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imageUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imagePathFormat:
\'
/upload/${appId}/cms/content/editor/%7Btime%7D
\'
,filePathFormat:
\'
/upload/${appId}/cms/content/editor/%7Btime%7D
\'
,videoPathFormat:
\'
/upload/${appId}/cms/content/editor/%7Btime%7D
\'
%7D"
,
serverUrl
:
ms
.base
+
"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,fileUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imageUrlPrefix:
\'
"
+
ms
.base
+
"
\'
,imagePathFormat:
\'
/upload/${appId}/cms/content/editor/%7Btime%7D
\'
,filePathFormat:
\'
/upload/${appId}/cms/content/editor/%7Btime%7D
\'
,videoPathFormat:
\'
/upload/${appId}/cms/content/editor/%7Btime%7D
\'
%7D"
,
...
...
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