Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-demo-single
Overview
Overview
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
gic_demo
gic-demo-single
Commits
313e7e76
Commit
313e7e76
authored
Jun 20, 2019
by
朱瑞泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
c0c18634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
AuthcenterTestController.java
.../demo/single/web/controller/AuthcenterTestController.java
+3
-2
No files found.
gic-demo-single-web/src/main/java/com/gic/demo/single/web/controller/AuthcenterTestController.java
View file @
313e7e76
...
...
@@ -7,6 +7,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -52,7 +53,7 @@ public class AuthcenterTestController {
* @return 用户详情
*/
@RequestMapping
(
"/authcenter-code-callback"
)
public
String
authcenterCodeCallback
(
String
code
)
{
public
String
authcenterCodeCallback
(
@RequestParam
(
name
=
"code"
)
String
code
)
{
return
JSON
.
toJSONString
(
gicAuthcenterManager
.
processCode
(
code
));
}
...
...
@@ -63,7 +64,7 @@ public class AuthcenterTestController {
* @return 用户详情
*/
@RequestMapping
(
"/get-user-details"
)
public
String
getUserDetails
(
Integer
id
)
{
public
String
getUserDetails
(
@RequestParam
(
name
=
"id"
)
Integer
id
)
{
try
{
return
JSON
.
toJSONString
(
gicAuthcenterManager
.
getUserDetails
(
id
));
}
catch
(
NoTokenCacheException
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