|
@@ -1,6 +1,7 @@
|
|
|
package com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v4.controller;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.BusinessRespEnum;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.DataRespVO;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.MessageRespVO;
|
|
@@ -29,6 +30,7 @@ import com.dragoninfo.dcuc.common.utils.ResponseUtil;
|
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseDTO;
|
|
|
import com.dragonsoft.duceap.commons.util.ip.IpUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -50,6 +52,7 @@ import java.util.stream.Collectors;
|
|
|
* @author huangzqa
|
|
|
* @date 2022/8/24
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@RestController
|
|
|
@Api(tags = {"权限管理对外开放接口V4"})
|
|
|
@RequestMapping(value = "/api/auth-service/v4/")
|
|
@@ -85,6 +88,7 @@ public class AuthV4Controller {
|
|
|
}
|
|
|
|
|
|
TokenDetailRespVo tokenInfo = authTokenFacade.getByAppTokenId(appTokenId, true, false);
|
|
|
+ log.info("应用鉴权查寻到的结果:{}", JSON.toJSONString(tokenInfo));
|
|
|
|
|
|
AuthUserVo userInfo = tokenInfo.getUserInfo();
|
|
|
if (userInfo == null) {
|