Commit 313e7e76 by 朱瑞泽

代码调整

parent c0c18634
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment