Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
智布道
OneBlog
提交
022e19ae
O
OneBlog
项目概览
智布道
/
OneBlog
8 个月 前同步成功
通知
11
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneBlog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
022e19ae
编写于
10月 27, 2021
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🔖
发布 2.3.0
上级
ca181fba
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
19 addition
and
22 deletion
+19
-22
blog-admin/pom.xml
blog-admin/pom.xml
+1
-1
blog-core/pom.xml
blog-core/pom.xml
+1
-1
blog-core/src/main/resources/config/application-center.yml
blog-core/src/main/resources/config/application-center.yml
+1
-1
blog-file/pom.xml
blog-file/pom.xml
+1
-1
blog-web/pom.xml
blog-web/pom.xml
+1
-1
blog-web/src/main/java/com/zyd/blog/controller/OAuthController.java
...rc/main/java/com/zyd/blog/controller/OAuthController.java
+2
-7
docs/bin/repVersion.sh
docs/bin/repVersion.sh
+0
-1
docs/bin/updVersion.sh
docs/bin/updVersion.sh
+1
-1
docs/bin/version.txt
docs/bin/version.txt
+1
-1
pom.xml
pom.xml
+6
-7
update.md
update.md
+4
-0
未找到文件。
blog-admin/pom.xml
浏览文件 @
022e19ae
...
...
@@ -12,7 +12,7 @@
<parent>
<groupId>
com.zyd
</groupId>
<artifactId>
blog
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</parent>
<dependencies>
...
...
blog-core/pom.xml
浏览文件 @
022e19ae
...
...
@@ -12,7 +12,7 @@
<parent>
<groupId>
com.zyd
</groupId>
<artifactId>
blog
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</parent>
<dependencies>
...
...
blog-core/src/main/resources/config/application-center.yml
浏览文件 @
022e19ae
...
...
@@ -86,5 +86,5 @@ pagehelper:
params
:
count=countSql
app
:
version
:
v2.
2.9
version
:
v2.
3.0
enableRedisCache
:
${ONEBLOG_ENABLE_REDIS_CACHE:false}
blog-file/pom.xml
浏览文件 @
022e19ae
...
...
@@ -12,7 +12,7 @@
<parent>
<groupId>
com.zyd
</groupId>
<artifactId>
blog
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</parent>
<properties>
...
...
blog-web/pom.xml
浏览文件 @
022e19ae
...
...
@@ -12,7 +12,7 @@
<parent>
<groupId>
com.zyd
</groupId>
<artifactId>
blog
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</parent>
<dependencies>
...
...
blog-web/src/main/java/com/zyd/blog/controller/OAuthController.java
浏览文件 @
022e19ae
...
...
@@ -5,8 +5,6 @@ import com.fujieid.jap.core.JapUserService;
import
com.fujieid.jap.core.config.JapConfig
;
import
com.fujieid.jap.core.context.JapAuthentication
;
import
com.fujieid.jap.core.result.JapResponse
;
import
com.fujieid.jap.http.adapter.jakarta.JakartaRequestAdapter
;
import
com.fujieid.jap.http.adapter.jakarta.JakartaResponseAdapter
;
import
com.fujieid.jap.social.SocialStrategy
;
import
com.zyd.blog.business.entity.SocialConfig
;
import
com.zyd.blog.business.entity.User
;
...
...
@@ -47,9 +45,7 @@ public class OAuthController {
throw
new
ZhydException
(
source
+
" 平台的配置尚未完成,暂时不支持登录!"
);
}
SocialStrategy
socialStrategy
=
new
SocialStrategy
(
japUserService
,
new
JapConfig
());
JapResponse
japResponse
=
socialStrategy
.
authenticate
(
JapUtil
.
blogSocialConfig2JapSocialConfig
(
socialConfig
,
source
),
new
JakartaRequestAdapter
(
request
),
new
JakartaResponseAdapter
(
response
));
JapResponse
japResponse
=
socialStrategy
.
authenticate
(
JapUtil
.
blogSocialConfig2JapSocialConfig
(
socialConfig
,
source
),
request
,
response
);
if
(!
japResponse
.
isSuccess
())
{
throw
new
ZhydException
(
japResponse
.
getMessage
());
}
...
...
@@ -68,8 +64,7 @@ public class OAuthController {
*/
@RequestMapping
(
"/logout"
)
public
ModelAndView
logout
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
JapAuthentication
.
logout
(
new
JakartaRequestAdapter
(
request
),
new
JakartaResponseAdapter
(
response
));
JapAuthentication
.
logout
(
request
,
response
);
SessionUtil
.
removeUser
();
return
ResultUtil
.
redirect
(
"/"
);
}
...
...
docs/bin/repVersion.sh
浏览文件 @
022e19ae
...
...
@@ -21,7 +21,6 @@ fi
# 替换README.md等文件中的版本
sed
-i
"s/
${
old_version
}
/
${
new_version
}
/g"
$pwd
/blog-core/src/main/resources/config/application-center.yml
sed
-i
"s/
${
old_version
}
/
${
new_version
}
/g"
$pwd
/README.md
sed
-i
"s/
${
old_version
}
/
${
new_version
}
/g"
$pwd
/README.en-US.md
# 替换pom.xml中的版本
sed
-i
"s/
${
old_version
}
/
${
new_version
}
/g"
$pwd
/pom.xml
...
...
docs/bin/updVersion.sh
浏览文件 @
022e19ae
...
...
@@ -9,4 +9,4 @@ fi
mvn versions:set
-DnewVersion
=
$1
# 替换其它地方的版本
source
$(
pwd
)
/bin/repVersion.sh
"
$1
"
source
$(
pwd
)
/
docs/
bin/repVersion.sh
"
$1
"
docs/bin/version.txt
浏览文件 @
022e19ae
2.
2.9
2.
3.0
pom.xml
浏览文件 @
022e19ae
...
...
@@ -5,7 +5,7 @@
<groupId>
com.zyd
</groupId>
<artifactId>
blog
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
<packaging>
pom
</packaging>
<modules>
<module>
blog-core
</module>
...
...
@@ -25,7 +25,6 @@
</parent>
<properties>
<oneblog.version>
2.2.9
</oneblog.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
...
...
@@ -51,7 +50,7 @@
<spring.web.version>
5.1.4.RELEASE
</spring.web.version>
<aliyun.oss.version>
2.8.3
</aliyun.oss.version>
<blog-hunter.version>
1.0.4
</blog-hunter.version>
<jap.version>
1.0.
5
</jap.version>
<jap.version>
1.0.
4
</jap.version>
</properties>
<dependencyManagement>
...
...
@@ -59,22 +58,22 @@
<dependency>
<groupId>
com.zyd
</groupId>
<artifactId>
blog-core
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</dependency>
<dependency>
<groupId>
com.zyd
</groupId>
<artifactId>
blog-admin
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</dependency>
<dependency>
<groupId>
com.zyd
</groupId>
<artifactId>
blog-web
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</dependency>
<dependency>
<groupId>
com.zyd
</groupId>
<artifactId>
blog-file
</artifactId>
<version>
${oneblog.version}
</version>
<version>
2.3.0
</version>
</dependency>
</dependencies>
</dependencyManagement>
...
...
update.md
浏览文件 @
022e19ae
...
...
@@ -3,6 +3,10 @@
----
### 2021-10-27
-
修复第三方登录失败的问题
### 2021-10-23
1.
优化页面样式。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录