Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
84a8048d
Commit
84a8048d
authored
Sep 18, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口不校验逻辑判断更新 根据值班区域获取值班人员接口 不校验token
parent
4fad27be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ControllerAop.java
...a/com/yeejoin/amos/boot/biz/common/aop/ControllerAop.java
+8
-6
DutyPersonController.java
...ot/module/common/biz/controller/DutyPersonController.java
+1
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/aop/ControllerAop.java
View file @
84a8048d
...
@@ -63,6 +63,14 @@ public class ControllerAop {
...
@@ -63,6 +63,14 @@ public class ControllerAop {
public
void
doBefore
(
JoinPoint
joinPoint
)
{
public
void
doBefore
(
JoinPoint
joinPoint
)
{
ServletRequestAttributes
attributes
=
(
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
();
ServletRequestAttributes
attributes
=
(
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
();
HttpServletRequest
request
=
attributes
.
getRequest
();
HttpServletRequest
request
=
attributes
.
getRequest
();
// 不需要添加请求头的接口
String
[]
url
=
new
String
[]{
"/api/user/selectInfo"
,
"/api/user/save/curCompany"
,
"/jcs/command/lookHtmlText"
,
"/jcs/common/duty-person/findByDutyAreaId"
};
// 获取请求路径
for
(
String
uri
:
url
)
{
if
(
request
.
getRequestURI
().
indexOf
(
uri
)
!=
-
1
)
{
return
;
}
}
//TODO tyboot 框架拦截器已缓存数据
//TODO tyboot 框架拦截器已缓存数据
String
token
=
RequestContext
.
getToken
();
String
token
=
RequestContext
.
getToken
();
// 平台studio配置的下载接口token从url里取
// 平台studio配置的下载接口token从url里取
...
@@ -70,12 +78,6 @@ public class ControllerAop {
...
@@ -70,12 +78,6 @@ public class ControllerAop {
fillRequestContext
(
request
);
fillRequestContext
(
request
);
token
=
RequestContext
.
getToken
();
token
=
RequestContext
.
getToken
();
}
}
// 不需要添加请求头的接口
String
[]
url
=
new
String
[]{
"/api/user/selectInfo"
,
"/api/user/save/curCompany"
,
"/jcs/command/lookHtmlText"
};
// 获取请求路径
if
(
Arrays
.
asList
(
url
).
contains
(
request
.
getRequestURI
()))
{
return
;
}
if
(
token
!=
null
)
{
if
(
token
!=
null
)
{
String
pattern
=
RedisKey
.
buildPatternKey
(
token
);
String
pattern
=
RedisKey
.
buildPatternKey
(
token
);
//验证token有效性,防止token失效
//验证token有效性,防止token失效
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyPersonController.java
View file @
84a8048d
...
@@ -171,7 +171,7 @@ public class DutyPersonController extends BaseController {
...
@@ -171,7 +171,7 @@ public class DutyPersonController extends BaseController {
* 新接口 根据值班区域id 查询值班人 by kongfm 2021-09-15
* 新接口 根据值班区域id 查询值班人 by kongfm 2021-09-15
* @return ResponseModel
* @return ResponseModel
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/findByDutyAreaId/{dutyAreaId}"
)
@GetMapping
(
value
=
"/findByDutyAreaId/{dutyAreaId}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据值班区域ID查询当前值班人"
,
notes
=
"根据值班区域ID查询当前值班人"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据值班区域ID查询当前值班人"
,
notes
=
"根据值班区域ID查询当前值班人"
)
public
ResponseModel
<
List
<
DutyPersonDto
>>
findByDutyAreaId
(
public
ResponseModel
<
List
<
DutyPersonDto
>>
findByDutyAreaId
(
...
...
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