mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
docs: 注释优化
This commit is contained in:
parent
cdda1bbcd8
commit
8034cde0aa
@ -59,14 +59,25 @@ public class SecurityUtils {
|
||||
return String.valueOf(getTokenAttributes().get("jti"));
|
||||
}
|
||||
|
||||
|
||||
public static Long getExp() {
|
||||
return Convert.toLong(getTokenAttributes().get("jti"));
|
||||
return Convert.toLong(getTokenAttributes().get("exp"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据权限范围
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static Integer getDataScope() {
|
||||
return Convert.toInt(getTokenAttributes().get("dataScope"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员ID
|
||||
*
|
||||
* @return 会员ID
|
||||
*/
|
||||
public static Long getMemberId() {
|
||||
return Convert.toLong(getTokenAttributes().get("memberId"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user