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
3e26c01c
Commit
3e26c01c
authored
Jan 26, 2021
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类获取、文章详情字数限制
parent
d706b1f7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
CategoryAction.java
...main/java/net/mingsoft/cms/action/web/CategoryAction.java
+1
-1
ContentAction.java
src/main/java/net/mingsoft/cms/action/web/ContentAction.java
+1
-1
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+1
-1
No files found.
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{
if
(
category
.
getId
()==
null
)
{
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
);
}
...
...
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{
if
(
content
.
getId
()==
null
)
{
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
);
}
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
3e26c01c
...
...
@@ -272,7 +272,7 @@
scaleEnabled
:
true
,
compressSide
:
0
,
maxImageSideLength
:
1000
,
maximumWords
:
2
000
,
maximumWords
:
100
000
,
initialFrameWidth
:
'100%'
,
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"
,
...
...
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