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
644f0bdc
Commit
644f0bdc
authored
Dec 15, 2022
by
msgroup
Committed by
mingsoft
Dec 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:待发布版本
Signed-off-by:
mingsoft
<
killfen@126.com
>
parent
f66c6298
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
5 deletions
+48
-5
BaseAction.java
src/main/java/net/mingsoft/cms/action/BaseAction.java
+0
-0
CategoryAction.java
src/main/java/net/mingsoft/cms/action/CategoryAction.java
+0
-0
CategoryBean.java
src/main/java/net/mingsoft/cms/bean/CategoryBean.java
+0
-0
ICategoryBiz.java
src/main/java/net/mingsoft/cms/biz/ICategoryBiz.java
+0
-0
IHistoryLogBiz.java
src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java
+0
-0
CategoryBizImpl.java
src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
+0
-0
Const.java
src/main/java/net/mingsoft/cms/constant/Const.java
+0
-0
ICategoryDao.java
src/main/java/net/mingsoft/cms/dao/ICategoryDao.java
+0
-0
ICmsHistoryLogDao.java
src/main/java/net/mingsoft/cms/dao/ICmsHistoryLogDao.java
+0
-0
CategoryEntity.java
src/main/java/net/mingsoft/cms/entity/CategoryEntity.java
+43
-3
WebConfig.java
src/main/java/net/mingsoft/config/WebConfig.java
+5
-1
news-detail.htm
src/main/webapp/template/1/default/news-detail.htm
+0
-1
No files found.
src/main/java/net/mingsoft/cms/action/BaseAction.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/action/CategoryAction.java
View file @
644f0bdc
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/bean/CategoryBean.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/biz/ICategoryBiz.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/biz/IHistoryLogBiz.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/biz/impl/CategoryBizImpl.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/constant/Const.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/dao/ICategoryDao.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/dao/ICmsHistoryLogDao.java
View file @
644f0bdc
src/main/java/net/mingsoft/cms/entity/CategoryEntity.java
View file @
644f0bdc
...
...
@@ -7,10 +7,10 @@
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* <p>
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* <p>
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
...
...
@@ -24,6 +24,11 @@ package net.mingsoft.cms.entity;
import
com.baomidou.mybatisplus.annotation.*
;
import
net.mingsoft.base.entity.BaseEntity
;
import
net.mingsoft.basic.util.BasicUtil
;
import
net.mingsoft.config.MSProperties
;
import
net.mingsoft.mdiy.util.ConfigUtil
;
import
java.io.File
;
/**
* 分类实体
...
...
@@ -131,6 +136,21 @@ public class CategoryEntity extends BaseEntity {
*/
private
String
topId
;
/**
* 路径url
*/
@TableField
(
exist
=
false
)
private
String
url
;
/**
* 设置url路径
*
* @param url 路径的字符串
*/
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
Boolean
getLeaf
()
{
return
leaf
;
}
...
...
@@ -419,7 +439,8 @@ public class CategoryEntity extends BaseEntity {
* 获取栏目Id(标签使用)
*/
public
Boolean
getTypeleaf
()
{
return
this
.
leaf
;
}
return
this
.
leaf
;
}
/**
...
...
@@ -431,6 +452,7 @@ public class CategoryEntity extends BaseEntity {
@TableField
(
exist
=
false
)
private
String
typepath
;
/**
* 获取栏目图片 (标签使用)
*/
...
...
@@ -462,4 +484,22 @@ public class CategoryEntity extends BaseEntity {
this
.
childsize
=
childsize
;
}
/**
* 获取url路径
*
* @return url路径的字符串
*/
public
String
getUrl
()
{
String
appDir
=
""
;
String
htmlDir
=
MSProperties
.
diy
.
htmlDir
;
String
categoryPath
=
this
.
getCategoryPath
();
String
categoryPinyin
=
this
.
getCategoryPinyin
();
if
(!(
ConfigUtil
.
getBoolean
(
"短链配置"
,
"shortLinkSwitch"
,
false
)))
{
//未开启短链
appDir
=
"/"
+
BasicUtil
.
getApp
().
getAppDir
();
return
url
=
"/"
+
htmlDir
+
appDir
+
categoryPath
+
"/index.html"
;
}
//开启短链后的url拼接
return
url
=
"/"
+
htmlDir
+
appDir
+
"/"
+
categoryPinyin
+
".html"
;
}
}
src/main/java/net/mingsoft/config/WebConfig.java
View file @
644f0bdc
...
...
@@ -132,7 +132,8 @@ public class WebConfig implements WebMvcConfigurer {
@Bean
public
FilterRegistrationBean
xssFilterRegistration
(
@Value
(
"${ms.xss.enable:true}"
)
boolean
xssEnable
,
@Value
(
"${ms.xss.filter-url}"
)
String
filterUrl
,
@Value
(
"${ms.xss.exclude-url}"
)
String
excludeUrl
)
{
@Value
(
"${ms.xss.exclude-url}"
)
String
excludeUrl
,
@Value
(
"${ms.xss.exclude-filed}"
)
String
excludeFiled
)
{
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
Map
<
String
,
String
>
initParameters
=
new
HashMap
();
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
();
...
...
@@ -149,6 +150,9 @@ public class WebConfig implements WebMvcConfigurer {
}
else
{
xssFilter
.
excludes
.
add
(
MSProperties
.
manager
.
path
+
"/**"
);
}
if
(
excludeFiled
!=
null
&&
StrUtil
.
isNotBlank
(
excludeFiled
))
{
xssFilter
.
excludesFiled
.
addAll
(
Arrays
.
asList
(
excludeFiled
.
split
(
","
)));
}
initParameters
.
put
(
"isIncludeRichText"
,
"false"
);
registration
.
setInitParameters
(
initParameters
);
registration
.
setFilter
(
xssFilter
);
...
...
src/main/webapp/template/1/default/news-detail.htm
View file @
644f0bdc
...
...
@@ -92,7 +92,6 @@
},
},
created
()
{
this
.
likeTotal
()
}
})
</script>
...
...
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