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
67a944a5
Commit
67a944a5
authored
Mar 15, 2021
by
wujj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get方法bug 修订
parent
8efd3558
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
pom.xml
pom.xml
+1
-1
ContentAction.java
src/main/java/net/mingsoft/cms/action/ContentAction.java
+1
-1
ContentAop.java
src/main/java/net/mingsoft/cms/aop/ContentAop.java
+1
-1
No files found.
pom.xml
View file @
67a944a5
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mcms
</artifactId>
<artifactId>
ms-mcms
</artifactId>
<version>
5.2.
0.RELEASE
</version>
<version>
5.2.
1-SNAPSHOT
</version>
<name>
ms-mcms
</name>
<name>
ms-mcms
</name>
<!-- 打包war包 -->
<!-- 打包war包 -->
<!-- <packaging>war</packaging>-->
<!-- <packaging>war</packaging>-->
...
...
src/main/java/net/mingsoft/cms/action/ContentAction.java
View file @
67a944a5
...
@@ -285,7 +285,7 @@ public class ContentAction extends BaseAction {
...
@@ -285,7 +285,7 @@ public class ContentAction extends BaseAction {
if
(!
StringUtil
.
checkLength
(
content
.
getContentUrl
()+
""
,
0
,
200
)){
if
(!
StringUtil
.
checkLength
(
content
.
getContentUrl
()+
""
,
0
,
200
)){
return
ResultData
.
build
().
error
(
getResString
(
"err.length"
,
this
.
getResString
(
"content.url"
),
"0"
,
"200"
));
return
ResultData
.
build
().
error
(
getResString
(
"err.length"
,
this
.
getResString
(
"content.url"
),
"0"
,
"200"
));
}
}
contentBiz
.
updateEntity
(
content
);
contentBiz
.
saveOrUpdate
(
content
);
return
ResultData
.
build
().
success
(
content
);
return
ResultData
.
build
().
success
(
content
);
}
}
...
...
src/main/java/net/mingsoft/cms/aop/ContentAop.java
View file @
67a944a5
...
@@ -71,7 +71,7 @@ public class ContentAop extends BaseAop {
...
@@ -71,7 +71,7 @@ public class ContentAop extends BaseAop {
if
(
content
.
getId
()==
null
)
{
if
(
content
.
getId
()==
null
)
{
return
pjp
.
proceed
();
return
pjp
.
proceed
();
}
}
content
=
(
ContentEntity
)
contentBiz
.
getEntity
(
Integer
.
parseInt
(
content
.
getId
()
));
content
=
contentBiz
.
getById
(
content
.
getId
(
));
//如果文章不存在则直接发行
//如果文章不存在则直接发行
if
(
content
==
null
){
if
(
content
==
null
){
return
pjp
.
proceed
();
return
pjp
.
proceed
();
...
...
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