From 1691824b51cf284267b045b7294425109777ac08 Mon Sep 17 00:00:00 2001 From: Jack_1994 Date: Mon, 23 Mar 2020 23:54:12 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/api/SsoApiController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java index 724ec7e9f..193868c03 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java @@ -9,7 +9,6 @@ import com.ruoyi.sso.service.ISsoApplicationService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; -import io.swagger.annotations.ApiResponse; import jodd.http.HttpRequest; import jodd.http.HttpResponse; import org.slf4j.Logger; @@ -61,6 +60,7 @@ public class SsoApiController extends BaseController { public String ssoCallBack(@ApiParam(value = "回调应用加密信息", type = "String") String redirect_uri, @ApiParam(value = "用于搜索数据的ticket", type = "String") String ticket, @ApiParam(value = "登录类型", type = "String") String logintype) throws Exception { + logger.info("redirect_uri = {} ----- ticket = {} ----- loginType = {}", redirect_uri, ticket, logintype); String resultJsonStr = DESUtil.decrypt(redirect_uri, JXSR_SSO_API_KEY); JSONObject jsonObject = JSONObject.parseObject(resultJsonStr); String appKey = jsonObject.getString("appKey"); @@ -78,6 +78,7 @@ public class SsoApiController extends BaseController { @GetMapping(value = "/validateTicket", produces = "application/json;charset=utf-8") @ResponseBody public String validateTicket(@ApiParam(value = "回调中获取的ticket值", type = "String", required = true) String ticket) { + logger.info("ticket = {}", ticket); HttpResponse response = HttpRequest.post("https://login.jxzwfww.gov.cn/auth2/validationTicket.do") .form("ticket", ticket) .form("clientId", JXSR_CLIENT_ID)