Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
customer-service
Commits
d79ac8a0
Commit
d79ac8a0
authored
Apr 21, 2020
by
杨钧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤器去掉对system判断
parent
a09e45da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
ValidOperatePermitFilter.java
...omer/config/http/mvc/filter/ValidOperatePermitFilter.java
+3
-3
OpSystemServiceImpl.java
...quantgroup/customer/service/impl/OpSystemServiceImpl.java
+5
-2
No files found.
src/main/java/cn/quantgroup/customer/config/http/mvc/filter/ValidOperatePermitFilter.java
View file @
d79ac8a0
...
...
@@ -47,14 +47,14 @@ public class ValidOperatePermitFilter implements Filter {
}
String
token
=
request
.
getHeader
(
"x-auth-token"
);
String
system
=
request
.
getHeader
(
"x-auth-system"
);
if
(
StringUtils
.
is
AnyBlank
(
token
,
system
))
{
//
String system = request.getHeader("x-auth-system");
if
(
StringUtils
.
is
Blank
(
token
))
{
log
.
error
(
"根据token信息查询用户信息,当前 requestUrl={}"
,
request
.
getRequestURL
());
renderErrorMsg
(
servletResponse
,
ErrorCodeEnum
.
NO_TOKEN
);
return
;
}
JsonResult
<
OpUser
>
opUserResult
=
IOpSystemService
.
findUserByToken
(
token
,
system
);
JsonResult
<
OpUser
>
opUserResult
=
IOpSystemService
.
findUserByToken
(
token
,
null
);
if
(
Objects
.
isNull
(
opUserResult
)
||
!
opUserResult
.
isSuccess
())
{
log
.
error
(
"根据token查询不到用户信息 token:{}"
,
token
);
renderErrorMsg
(
servletResponse
,
ErrorCodeEnum
.
ILLEGAL_TOKEN
);
...
...
src/main/java/cn/quantgroup/customer/service/impl/OpSystemServiceImpl.java
View file @
d79ac8a0
...
...
@@ -44,8 +44,11 @@ public class OpSystemServiceImpl implements IOpSystemService {
try
{
Map
<
String
,
String
>
param
=
Maps
.
newHashMap
();
param
.
put
(
"x-auth-token"
,
token
);
param
.
put
(
"x-auth-system"
,
system
);
String
result
=
null
;
if
(
StringUtils
.
isNotBlank
(
system
)){
param
.
put
(
"x-auth-system"
,
system
);
}
String
result
;
try
{
result
=
httpService
.
post
(
url
,
param
,
null
);
}
catch
(
Exception
e
)
{
...
...
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