统一登录认证调整

This commit is contained in:
mythxb 2024-01-05 09:18:02 +08:00
parent 8df2f8b949
commit 230fea7437
3 changed files with 1 additions and 5 deletions

View File

@ -17,14 +17,11 @@ import org.apache.commons.collections.map.HashedMap;
import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.context.request.ServletRequestAttributes;

View File

@ -52,7 +52,7 @@ public class AuthController extends BaseController{
private static final String clientSecret = "082bbd818893d2fa443da6fdaf2aad97"; private static final String clientSecret = "082bbd818893d2fa443da6fdaf2aad97";
//回调地址 //回调地址
private static final String redirectUri = "http://42.193.40.239:7010/auth/getCode"; private static final String redirectUri = "http://182.132.59.28:8018/prod-api/auth/getCode";
//部门id //部门id
private static final String unitId = "06623f79-19bb-48d7-8257-3f1d9545a827"; private static final String unitId = "06623f79-19bb-48d7-8257-3f1d9545a827";

View File

@ -366,7 +366,6 @@ public class PcPersonalController extends com.rzyc.controller.BaseController {
* @return * @return
* @throws Exception * @throws Exception
*/ */
@LoginAuth
@ApiOperation(value = "用户信息", notes = "用户信息") @ApiOperation(value = "用户信息", notes = "用户信息")
@PostMapping(value = "/userInfo/{userId}") @PostMapping(value = "/userInfo/{userId}")
@ResponseBody @ResponseBody