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
eaa1c4b3
Commit
eaa1c4b3
authored
Feb 27, 2019
by
铭飞
Browse files
!138 去掉多图上传|隔开,请求统一,配置文件
Merge pull request !138 from 田彬杰/4.7.0
parents
f1560171
f8a4aff2
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/ArticleAction.java
View file @
eaa1c4b3
...
@@ -267,11 +267,6 @@ public class ArticleAction extends BaseAction {
...
@@ -267,11 +267,6 @@ public class ArticleAction extends BaseAction {
}
else
{
}
else
{
article
.
setArticleType
(
checkboxType
);
article
.
setArticleType
(
checkboxType
);
}
}
// 问题:由于上传的图片路径后面可能带有|符合。所以要进行将“|”替换空
// 空值判断
if
(!
StringUtils
.
isBlank
(
article
.
getBasicThumbnails
()))
{
article
.
setBasicThumbnails
(
article
.
getBasicThumbnails
().
replace
(
"|"
,
""
));
}
ColumnEntity
column
=
(
ColumnEntity
)
columnBiz
.
getEntity
(
article
.
getBasicCategoryId
());
ColumnEntity
column
=
(
ColumnEntity
)
columnBiz
.
getEntity
(
article
.
getBasicCategoryId
());
article
.
setColumn
(
column
);
article
.
setColumn
(
column
);
...
@@ -397,11 +392,6 @@ public class ArticleAction extends BaseAction {
...
@@ -397,11 +392,6 @@ public class ArticleAction extends BaseAction {
}
else
{
}
else
{
article
.
setArticleType
(
checkboxType
);
article
.
setArticleType
(
checkboxType
);
}
}
// 问题:由于上传的图片路径后面可能带有|符合。所以要进行将“|”替换空
// 空值判断
if
(!
StringUtils
.
isBlank
(
article
.
getBasicThumbnails
()))
{
article
.
setBasicThumbnails
(
article
.
getBasicThumbnails
().
replace
(
"|"
,
""
));
}
// 获取更改前的文章实体
// 获取更改前的文章实体
ArticleEntity
oldArticle
=
(
ArticleEntity
)
articleBiz
.
getEntity
(
basicId
);
ArticleEntity
oldArticle
=
(
ArticleEntity
)
articleBiz
.
getEntity
(
basicId
);
// 获取栏目实体
// 获取栏目实体
...
...
src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
View file @
eaa1c4b3
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
$(function()
{
$(function()
{
var
URL
=
"${managerPath}/template/queryTemplateFileForColumn.do"
;
var
URL
=
"${managerPath}/template/queryTemplateFileForColumn.do"
;
var
DATA
=
""
;
var
DATA
=
""
;
$
(
this
)
.request
({
url
:
URL
,
data
:
DATA
,
type
:
"json"
,
method
:
"
pos
t"
,
func
:
function
(
msg
)
{
$
(
this
)
.request
({
url
:
URL
,
data
:
DATA
,
type
:
"json"
,
method
:
"
ge
t"
,
func
:
function
(
msg
)
{
if
(
msg
.length
==
0
){
if
(
msg
.length
==
0
){
$
(
"#select_id"
)
.append
(
"<option value='' >暂无文件</option>"
)
$
(
"#select_id"
)
.append
(
"<option value='' >暂无文件</option>"
)
}
}
...
...
src/main/webapp/static/plugins/jquery.swfupload/1.0.0/upload_file.png
0 → 100644
View file @
eaa1c4b3
1.85 KB
src/main/webapp/static/plugins/jquery.swfupload/1.0.0/upload_pic.png
0 → 100644
View file @
eaa1c4b3
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