Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
143b6202
Commit
143b6202
authored
Aug 29, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新闻接口
parent
02a6544f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
AccessGatewayFilter.java
...hub/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
+2
-0
ResponseRecordFilter.java
...ub/wxiaoqi/security/gate/filter/ResponseRecordFilter.java
+1
-1
ArticleMapper.xml
...x-uccn-server/src/main/resources/mapper/ArticleMapper.xml
+1
-1
No files found.
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
View file @
143b6202
...
@@ -92,6 +92,8 @@ public class AccessGatewayFilter implements GlobalFilter {
...
@@ -92,6 +92,8 @@ public class AccessGatewayFilter implements GlobalFilter {
@Override
@Override
public
Mono
<
Void
>
filter
(
ServerWebExchange
serverWebExchange
,
GatewayFilterChain
gatewayFilterChain
)
{
public
Mono
<
Void
>
filter
(
ServerWebExchange
serverWebExchange
,
GatewayFilterChain
gatewayFilterChain
)
{
log
.
error
(
"请求进入:AccessGatewayFilter"
);
log
.
info
(
"check token and user permission...."
);
log
.
info
(
"check token and user permission...."
);
LinkedHashSet
requiredAttribute
=
serverWebExchange
.
getRequiredAttribute
(
ServerWebExchangeUtils
.
GATEWAY_ORIGINAL_REQUEST_URL_ATTR
);
LinkedHashSet
requiredAttribute
=
serverWebExchange
.
getRequiredAttribute
(
ServerWebExchangeUtils
.
GATEWAY_ORIGINAL_REQUEST_URL_ATTR
);
ServerHttpRequest
request
=
serverWebExchange
.
getRequest
();
ServerHttpRequest
request
=
serverWebExchange
.
getRequest
();
...
...
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/ResponseRecordFilter.java
View file @
143b6202
...
@@ -74,7 +74,7 @@ private static final ExchangeStrategies STRATEGIES;
...
@@ -74,7 +74,7 @@ private static final ExchangeStrategies STRATEGIES;
@Override
@Override
public
Mono
<
Void
>
writeWith
(
Publisher
<?
extends
DataBuffer
>
body
)
{
public
Mono
<
Void
>
writeWith
(
Publisher
<?
extends
DataBuffer
>
body
)
{
log
.
error
(
"请求进入:ResponseRecordFilter"
);
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
httpHeaders
.
add
(
"Content-Type"
,
"application/json"
);
httpHeaders
.
add
(
"Content-Type"
,
"application/json"
);
ResponseAdapter
responseAdapter
=
new
ResponseAdapter
(
body
,
httpHeaders
);
ResponseAdapter
responseAdapter
=
new
ResponseAdapter
(
body
,
httpHeaders
);
...
...
xx-uccn/xx-uccn-server/src/main/resources/mapper/ArticleMapper.xml
View file @
143b6202
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<mapper
namespace=
"com.xxfc.platform.uccn.mapper.ArticleMapper"
>
<mapper
namespace=
"com.xxfc.platform.uccn.mapper.ArticleMapper"
>
<select
id=
"getArticleList"
resultType=
"com.xxfc.platform.uccn.entity.Article"
>
<select
id=
"getArticleList"
resultType=
"com.xxfc.platform.uccn.entity.Article"
>
select title,epitome,add_time,cover_image from article
select
id,
title,epitome,add_time,cover_image from article
where is_del=0 and status=1 and (type=#{type} or type=0) order by weight ASC ,add_time DESC
where is_del=0 and status=1 and (type=#{type} or type=0) order by weight ASC ,add_time DESC
</select>
</select>
...
...
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