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
f8a4aff2
Commit
f8a4aff2
authored
Feb 27, 2019
by
Administrator
Browse files
多图上传|隔开,配置修改
parent
e6580888
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/ArticleAction.java
View file @
f8a4aff2
...
...
@@ -267,11 +267,6 @@ public class ArticleAction extends BaseAction {
}
else
{
article
.
setArticleType
(
checkboxType
);
}
// 问题:由于上传的图片路径后面可能带有|符合。所以要进行将“|”替换空
// 空值判断
if
(!
StringUtils
.
isBlank
(
article
.
getBasicThumbnails
()))
{
article
.
setBasicThumbnails
(
article
.
getBasicThumbnails
().
replace
(
"|"
,
""
));
}
ColumnEntity
column
=
(
ColumnEntity
)
columnBiz
.
getEntity
(
article
.
getBasicCategoryId
());
article
.
setColumn
(
column
);
...
...
@@ -397,11 +392,6 @@ public class ArticleAction extends BaseAction {
}
else
{
article
.
setArticleType
(
checkboxType
);
}
// 问题:由于上传的图片路径后面可能带有|符合。所以要进行将“|”替换空
// 空值判断
if
(!
StringUtils
.
isBlank
(
article
.
getBasicThumbnails
()))
{
article
.
setBasicThumbnails
(
article
.
getBasicThumbnails
().
replace
(
"|"
,
""
));
}
// 获取更改前的文章实体
ArticleEntity
oldArticle
=
(
ArticleEntity
)
articleBiz
.
getEntity
(
basicId
);
// 获取栏目实体
...
...
src/main/resources/application.yml
View file @
f8a4aff2
...
...
@@ -21,6 +21,7 @@ ms:
memory-size
:
4096
spring
:
http.multipart.enabled
:
false
profiles
:
active
:
dev
mvc
:
...
...
@@ -34,6 +35,7 @@ spring:
servlet
:
multipart
:
max-request-size
:
100MB
enabled
:
false
freemarker
:
suffix
:
.ftl
charset
:
UTF-8
...
...
src/main/webapp/static/plugins/jquery.swfupload/1.0.0/upload_file.png
0 → 100644
View file @
f8a4aff2
1.85 KB
src/main/webapp/static/plugins/jquery.swfupload/1.0.0/upload_pic.png
0 → 100644
View file @
f8a4aff2
1.14 KB
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