Browse Source

下发APP接口开发

master
caojianbin 2 years ago
parent
commit
1a30b7c0da
  1. 9
      ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/context/SecurityContextHolder.java

9
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/context/SecurityContextHolder.java

@ -77,6 +77,15 @@ public class SecurityContextHolder
set(SecurityConstants.DETAILS_USERNAME, username); set(SecurityConstants.DETAILS_USERNAME, username);
} }
public static void setUserAgent(String userId,String useragent)
{
set("userId", useragent);
}
public static String getUserAgent(String userId)
{
return get(userId);
}
public static String getUserKey() public static String getUserKey()
{ {
return get(SecurityConstants.USER_KEY); return get(SecurityConstants.USER_KEY);

Loading…
Cancel
Save