Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
aa936af5
Commit
aa936af5
authored
Mar 23, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改appkey
parent
189ed2eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
LoginController.java
...yeejoin/amos/fas/business/controller/LoginController.java
+5
-5
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/LoginController.java
View file @
aa936af5
...
@@ -70,11 +70,7 @@ public class LoginController {
...
@@ -70,11 +70,7 @@ public class LoginController {
@Value
(
"${amos.system.user.app-key}"
)
@Value
(
"${amos.system.user.app-key}"
)
private
String
appKey
;
private
String
appKey
;
@Value
(
"${amos.system.privilege.user.app-key:AMOS_ADMIN}"
)
private
String
appKeyPrivilege
;
@Value
(
"${amos.system.privilege.user.product:AMOS-WEB-ADMIN}"
)
private
String
productPrivilege
;
@ApiOperation
(
value
=
"通过userId登录"
,
notes
=
"查询设备指标"
)
@ApiOperation
(
value
=
"通过userId登录"
,
notes
=
"查询设备指标"
)
@GetMapping
(
value
=
"/{userId}"
)
@GetMapping
(
value
=
"/{userId}"
)
...
@@ -114,7 +110,11 @@ public class LoginController {
...
@@ -114,7 +110,11 @@ public class LoginController {
// 调用平台授权接口
// 调用平台授权接口
Map
<
String
,
String
>
re
=
(
Map
<
String
,
String
>)
feignClientResult
.
getResult
();
Map
<
String
,
String
>
re
=
(
Map
<
String
,
String
>)
feignClientResult
.
getResult
();
String
amosToken
=
re
.
get
(
"token"
);
String
amosToken
=
re
.
get
(
"token"
);
privilegeFeign
.
warrant
(
appKeyPrivilege
,
productPrivilege
,
amosToken
);
logger
.
info
(
"应用授权开始======================================"
);
FeignClientResult
fd
=
privilegeFeign
.
warrant
(
appKey
,
product
,
amosToken
);
logger
.
info
(
"应用授权结束======================================"
+
JSON
.
toJSONString
(
fd
));
RequestContext
.
setToken
(
amosToken
);
RequestContext
.
setToken
(
amosToken
);
RequestContext
.
setProduct
(
product
);
RequestContext
.
setProduct
(
product
);
RequestContext
.
setAppKey
(
appKey
);
RequestContext
.
setAppKey
(
appKey
);
...
...
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