Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dgr6878
PublicCMS
提交
19b373a5
PublicCMS
项目概览
dgr6878
/
PublicCMS
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
PublicCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
19b373a5
编写于
11月 14, 2020
作者:
S
sanluan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
程序版本更新 框架版本更新
上级
6f8ba74e
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
46 addition
and
44 deletion
+46
-44
publiccms-parent/build.gradle
publiccms-parent/build.gradle
+5
-5
publiccms-parent/pom.xml
publiccms-parent/pom.xml
+5
-5
publiccms-parent/publiccms-analyzer/pom.xml
publiccms-parent/publiccms-analyzer/pom.xml
+2
-2
publiccms-parent/publiccms-common/pom.xml
publiccms-parent/publiccms-common/pom.xml
+1
-1
publiccms-parent/publiccms-core/pom.xml
publiccms-parent/publiccms-core/pom.xml
+2
-2
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/constants/CmsVersion.java
.../main/java/com/publiccms/common/constants/CmsVersion.java
+2
-2
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/database/CmsUpgrader.java
.../main/java/com/publiccms/common/database/CmsUpgrader.java
+6
-4
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/interceptor/CorsInterceptor.java
...ava/com/publiccms/common/interceptor/CorsInterceptor.java
+2
-2
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/interceptor/CsrfInterceptor.java
...ava/com/publiccms/common/interceptor/CsrfInterceptor.java
+2
-2
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/interceptor/WebContextInterceptor.java
...m/publiccms/common/interceptor/WebContextInterceptor.java
+2
-2
publiccms-parent/publiccms-core/src/main/resources/initialization/upgrade/V4.0.202004-V4.0.202011.sql
...ources/initialization/upgrade/V4.0.202004-V4.0.202011.sql
+0
-0
publiccms-parent/publiccms-dmdialect/pom.xml
publiccms-parent/publiccms-dmdialect/pom.xml
+1
-1
publiccms-parent/publiccms-j2cache/pom.xml
publiccms-parent/publiccms-j2cache/pom.xml
+2
-2
publiccms-parent/publiccms-oauth/pom.xml
publiccms-parent/publiccms-oauth/pom.xml
+2
-2
publiccms-parent/publiccms-redis/pom.xml
publiccms-parent/publiccms-redis/pom.xml
+2
-2
publiccms-parent/publiccms-trade/pom.xml
publiccms-parent/publiccms-trade/pom.xml
+2
-2
publiccms-parent/publiccms/pom.xml
publiccms-parent/publiccms/pom.xml
+7
-7
publiccms-parent/publiccms/src/main/resources/templates/admin/login.html
...t/publiccms/src/main/resources/templates/admin/login.html
+1
-1
未找到文件。
publiccms-parent/build.gradle
浏览文件 @
19b373a5
...
...
@@ -19,17 +19,17 @@ subprojects{
apply
plugin:
"eclipse-wtp"
group
=
'com.publiccms'
version
=
'V4.0.2020
04.c
'
version
=
'V4.0.2020
11.a
'
test
.
enabled
=
false
ext
{
// http://mvnrepository.com/artifact/org.springframework/spring-core
// http://projects.spring.io/spring-framework/
springVersion
=
"5.2.
9
.RELEASE"
springVersion
=
"5.2.
10
.RELEASE"
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
// https://projects.spring.io/spring-boot/
springBootVersion
=
"2.3.
4
.RELEASE"
springBootVersion
=
"2.3.
5
.RELEASE"
// http://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
// http://hc.apache.org/downloads.cgi
httpclientVersion
=
"4.5.12"
...
...
@@ -65,7 +65,7 @@ subprojects{
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
hikariCPVersion
=
"3.4.5"
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
mysqlVersion
=
"8.0.2
1
"
mysqlVersion
=
"8.0.2
2
"
// https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
poiVersion
=
"4.1.2"
// http://mvnrepository.com/artifact/commons-fileupload/commons-fileupload
...
...
@@ -79,7 +79,7 @@ subprojects{
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
log4jVersion
=
"2.13.3"
// https://mvnrepository.com/artifact/com.drewnoakes/metadata-extractor
extractorVersion
=
"2.1
4
.0"
extractorVersion
=
"2.1
5
.0"
// http://mvnrepository.com/artifact/eu.bitwalker/UserAgentUtils
userAgentUtilsVersion
=
"1.21"
// https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api
...
...
publiccms-parent/pom.xml
浏览文件 @
19b373a5
...
...
@@ -5,7 +5,7 @@
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<packaging>
pom
</packaging>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
<modules>
<module>
publiccms
</module>
<module>
publiccms-core
</module>
...
...
@@ -22,10 +22,10 @@
<maven.compiler.encoding>
UTF-8
</maven.compiler.encoding>
<!-- http://mvnrepository.com/artifact/org.springframework/spring-core -->
<!-- http://projects.spring.io/spring-framework/ -->
<version.spring>
5.2.
9
.RELEASE
</version.spring>
<version.spring>
5.2.
10
.RELEASE
</version.spring>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<!-- https://projects.spring.io/spring-boot/ -->
<version.springBoot>
2.3.
4
.RELEASE
</version.springBoot>
<version.springBoot>
2.3.
5
.RELEASE
</version.springBoot>
<!-- http://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<!-- http://hc.apache.org/downloads.cgi -->
<version.httpclient>
4.5.12
</version.httpclient>
...
...
@@ -61,7 +61,7 @@
<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
<version.hikariCP>
3.4.5
</version.hikariCP>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<version.mysql>
8.0.2
1
</version.mysql>
<version.mysql>
8.0.2
2
</version.mysql>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<version.poi>
4.1.2
</version.poi>
<!-- http://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
...
...
@@ -75,7 +75,7 @@
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
<version.log4j>
2.13.3
</version.log4j>
<!-- https://mvnrepository.com/artifact/com.drewnoakes/metadata-extractor -->
<version.extractor>
2.1
4
.0
</version.extractor>
<version.extractor>
2.1
5
.0
</version.extractor>
<!-- http://mvnrepository.com/artifact/eu.bitwalker/UserAgentUtils -->
<version.userAgentUtils>
1.21
</version.userAgentUtils>
<!-- https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api -->
...
...
publiccms-parent/publiccms-analyzer/pom.xml
浏览文件 @
19b373a5
...
...
@@ -8,13 +8,13 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-core
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
org.apache.lucene
</groupId>
...
...
publiccms-parent/publiccms-common/pom.xml
浏览文件 @
19b373a5
...
...
@@ -5,7 +5,7 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<artifactId>
publiccms-common
</artifactId>
<name>
publiccms-common
</name>
...
...
publiccms-parent/publiccms-core/pom.xml
浏览文件 @
19b373a5
...
...
@@ -5,14 +5,14 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<artifactId>
publiccms-core
</artifactId>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-common
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
com.zaxxer
</groupId>
...
...
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/constants/CmsVersion.java
浏览文件 @
19b373a5
...
...
@@ -21,13 +21,13 @@ public class CmsVersion {
* @return version
*/
public
static
final
String
getVersion
()
{
return
"V4.0.2020
04
"
;
return
"V4.0.2020
11
"
;
}
/**
* @return revision
*/
public
static
final
String
getRevision
()
{
return
"
c
"
;
return
"
a
"
;
}
/**
...
...
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/database/CmsUpgrader.java
浏览文件 @
19b373a5
...
...
@@ -32,12 +32,12 @@ public class CmsUpgrader extends AbstractCmsUpgrader {
*/
private
final
static
String
VERSION_20170708
=
"V2017.0708"
,
VERSION_20180210
=
"V4.0.20180210"
,
VERSION_180707
=
"V4.0.180707"
,
VERSION_180825
=
"V4.0.180825"
,
VERSION_181024
=
"V4.0.181024"
,
VERSION_190312
=
"V4.0.190312"
;
VERSION_190312
=
"V4.0.190312"
,
VERSION_202004
=
"V4.0.202004"
;
/**
*
*/
private
final
static
List
<
String
>
VERSION_LIST
=
Arrays
.
asList
(
VERSION_20170708
,
VERSION_20180210
,
VERSION_180707
,
VERSION_180825
,
VERSION_181024
,
VERSION_190312
);
VERSION_180825
,
VERSION_181024
,
VERSION_190312
,
VERSION_202004
);
public
CmsUpgrader
(
Properties
config
)
{
super
(
config
);
...
...
@@ -62,7 +62,9 @@ public class CmsUpgrader extends AbstractCmsUpgrader {
case
VERSION_181024:
runScript
(
stringWriter
,
connection
,
VERSION_181024
,
VERSION_190312
);
case
VERSION_190312:
runScript
(
stringWriter
,
connection
,
VERSION_190312
,
CmsVersion
.
getVersion
());
runScript
(
stringWriter
,
connection
,
VERSION_190312
,
VERSION_202004
);
case
VERSION_202004:
runScript
(
stringWriter
,
connection
,
VERSION_202004
,
CmsVersion
.
getVersion
());
}
}
...
...
@@ -84,7 +86,7 @@ public class CmsUpgrader extends AbstractCmsUpgrader {
if
(
CommonUtils
.
notEmpty
(
timeZone
))
{
try
{
sb
.
append
(
"&serverTimezone=GMT"
);
if
(!
"Z"
.
equalsIgnoreCase
(
timeZone
))
{
if
(!
"Z"
.
equalsIgnoreCase
(
timeZone
))
{
sb
.
append
(
URLEncoder
.
encode
(
timeZone
,
Constants
.
DEFAULT_CHARSET_NAME
));
}
}
catch
(
UnsupportedEncodingException
e
)
{
...
...
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/interceptor/CorsInterceptor.java
浏览文件 @
19b373a5
...
...
@@ -7,7 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.cors.CorsProcessor
;
import
org.springframework.web.cors.DefaultCorsProcessor
;
import
org.springframework.web.servlet.
handler.HandlerInterceptorAdapte
r
;
import
org.springframework.web.servlet.
HandlerIntercepto
r
;
import
com.publiccms.logic.component.config.CorsConfigComponent
;
import
com.publiccms.logic.component.site.SiteComponent
;
...
...
@@ -18,7 +18,7 @@ import com.publiccms.logic.component.site.SiteComponent;
*
*/
@Component
public
class
CorsInterceptor
extends
HandlerInterceptorAdapte
r
{
public
class
CorsInterceptor
implements
HandlerIntercepto
r
{
public
static
final
CorsProcessor
corsProcessor
=
new
DefaultCorsProcessor
();
@Autowired
private
CorsConfigComponent
corsConfigComponent
;
...
...
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/interceptor/CsrfInterceptor.java
浏览文件 @
19b373a5
...
...
@@ -9,14 +9,14 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.web.method.HandlerMethod
;
import
org.springframework.web.servlet.
handler.HandlerInterceptorAdapte
r
;
import
org.springframework.web.servlet.
HandlerIntercepto
r
;
import
com.publiccms.common.annotation.Csrf
;
import
com.publiccms.common.constants.CommonConstants
;
import
com.publiccms.common.tools.ControllerUtils
;
import
com.publiccms.common.tools.LanguagesUtils
;
public
class
CsrfInterceptor
extends
HandlerInterceptorAdapte
r
{
public
class
CsrfInterceptor
implements
HandlerIntercepto
r
{
protected
Map
<
HandlerMethod
,
CsrfCache
>
methodCache
=
new
HashMap
<>();
private
CsrfCache
DEFAULT_CACHE
=
new
CsrfCache
(
false
,
null
);
private
boolean
admin
=
false
;
...
...
publiccms-parent/publiccms-core/src/main/java/com/publiccms/common/interceptor/WebContextInterceptor.java
浏览文件 @
19b373a5
...
...
@@ -9,7 +9,7 @@ import javax.servlet.http.HttpSession;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.servlet.
handler.HandlerInterceptorAdapte
r
;
import
org.springframework.web.servlet.
HandlerIntercepto
r
;
import
org.springframework.web.servlet.i18n.LocaleChangeInterceptor
;
import
org.springframework.web.util.UrlPathHelper
;
...
...
@@ -32,7 +32,7 @@ import com.publiccms.logic.service.sys.SysUserTokenService;
* WebContextInterceptor 权限拦截器
*
*/
public
class
WebContextInterceptor
extends
HandlerInterceptorAdapte
r
{
public
class
WebContextInterceptor
implements
HandlerIntercepto
r
{
protected
UrlPathHelper
urlPathHelper
=
new
UrlPathHelper
();
protected
final
Log
log
=
LogFactory
.
getLog
(
getClass
());
@Autowired
...
...
publiccms-parent/publiccms-core/src/main/resources/initialization/upgrade/V4.0.202004-
preview
.sql
→
publiccms-parent/publiccms-core/src/main/resources/initialization/upgrade/V4.0.202004-
V4.0.202011
.sql
浏览文件 @
19b373a5
文件已移动
publiccms-parent/publiccms-dmdialect/pom.xml
浏览文件 @
19b373a5
...
...
@@ -6,7 +6,7 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<artifactId>
publiccms-dmdialect
</artifactId>
<dependencies>
...
...
publiccms-parent/publiccms-j2cache/pom.xml
浏览文件 @
19b373a5
...
...
@@ -5,14 +5,14 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<artifactId>
publiccms-j2cache
</artifactId>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-common
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.oschina.j2cache/j2cache-core -->
<dependency>
...
...
publiccms-parent/publiccms-oauth/pom.xml
浏览文件 @
19b373a5
...
...
@@ -7,13 +7,13 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-core
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
...
...
publiccms-parent/publiccms-redis/pom.xml
浏览文件 @
19b373a5
...
...
@@ -8,13 +8,13 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-common
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
org.mybatis
</groupId>
...
...
publiccms-parent/publiccms-trade/pom.xml
浏览文件 @
19b373a5
...
...
@@ -8,13 +8,13 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-core
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alipay.sdk/alipay-sdk-java -->
<dependency>
...
...
publiccms-parent/publiccms/pom.xml
浏览文件 @
19b373a5
...
...
@@ -8,38 +8,38 @@
<parent>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-parent
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</parent>
<dependencies>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-core
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-oauth
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-redis
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-j2cache
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-analyzer
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
com.publiccms
</groupId>
<artifactId>
publiccms-trade
</artifactId>
<version>
V4.0.2020
04.c
</version>
<version>
V4.0.2020
11.a
</version>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
...
...
publiccms-parent/publiccms/src/main/resources/templates/admin/login.html
浏览文件 @
19b373a5
...
...
@@ -34,7 +34,7 @@
</form>
<p>
<
#list
langs
as
k
,
v
>
<a
<
#if
springMacroRequestContext.getMessage
('
page.lang
'
)=
k
>
class="current-lang"
</
#
if>
href="${base+adminContextPath}/changeLocale?lang=${k}
&
returnUrl=${(
base+
adminContextPath+'/')?url}">${v}
</a>
<a
<
#if
springMacroRequestContext.getMessage
('
page.lang
'
)=
k
>
class="current-lang"
</
#
if>
href="${base+adminContextPath}/changeLocale?lang=${k}
&
returnUrl=${(adminContextPath+'/')?url}">${v}
</a>
</
#
list>
</p>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录