Parcourir la source

Update UmsAdminServiceImpl.java

macro il y a 6 ans
Parent
commit
edf3dd6535

+ 1 - 1
mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java

@@ -109,7 +109,7 @@ public class UmsAdminServiceImpl implements UmsAdminService {
             UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());
             UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());
             SecurityContextHolder.getContext().setAuthentication(authentication);
             SecurityContextHolder.getContext().setAuthentication(authentication);
             token = jwtTokenUtil.generateToken(userDetails);
             token = jwtTokenUtil.generateToken(userDetails);
-            updateLoginTimeByUsername(username);
+//            updateLoginTimeByUsername(username);
             insertLoginLog(username);
             insertLoginLog(username);
         } catch (AuthenticationException e) {
         } catch (AuthenticationException e) {
             LOGGER.warn("登录异常:{}", e.getMessage());
             LOGGER.warn("登录异常:{}", e.getMessage());