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
bce33775
Commit
bce33775
authored
Aug 30, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改权限认证规则
parent
43b7d227
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
pom.xml
amos-boot-data/amos-boot-data-accessapi/pom.xml
+2
-3
ControllerAop.java
.../java/com/yeejoin/amos/api/openapi/aop/ControllerAop.java
+7
-7
BusinessController.java
...ejoin/amos/api/openapi/controller/BusinessController.java
+1
-1
No files found.
amos-boot-data/amos-boot-data-accessapi/pom.xml
View file @
bce33775
...
...
@@ -7,11 +7,10 @@
<artifactId>
amos-boot-data
</artifactId>
<version>
1.0.0
</version>
</parent>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-data-accessapi
</artifactId>
<version>
1.0.0
</version>
<name>
amos-boot-data-accessapi
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
...
...
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/api/openapi/aop/ControllerAop.java
View file @
bce33775
...
...
@@ -56,13 +56,13 @@ public class ControllerAop {
if
(
ValidationUtil
.
isEmpty
(
token
))
{
token
=
request
.
getParameterMap
().
get
(
"access_token"
)[
0
];
}
if
(
token
!=
null
)
{
fillRequestContext
(
token
);
}
boolean
validToken
=
TokenOperation
.
refresh
(
token
);
if
(!
validToken
)
{
throw
new
AuthException
(
"请求未包含认证信息."
);
}
//
if (token != null) {
//
fillRequestContext(token);
//
}
//
boolean validToken = TokenOperation.refresh(token);
//
if(!validToken) {
//
throw new AuthException("请求未包含认证信息.");
//
}
}
...
...
amos-boot-data/amos-boot-data-accessapi/src/main/java/com/yeejoin/amos/api/openapi/controller/BusinessController.java
View file @
bce33775
...
...
@@ -97,7 +97,7 @@ public class BusinessController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
fals
e
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
tru
e
)
@RequestMapping
(
value
=
"/getData"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取map"
,
notes
=
"获取map"
)
@RestEventTrigger
(
value
=
"openapiLogEventHandler"
)
...
...
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