课程指南-获取课程价格-目录添加是否购买

This commit is contained in:
wuchunlei
2024-06-18 13:48:16 +08:00
parent dd0470f9dc
commit 15c1781360
2 changed files with 21 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ public class ShiroUtils {
return getUserEntity().getUserId();
}
public static MyUserEntity getUser() {
return (MyUserEntity)SecurityUtils.getSubject().getPrincipal();
}
public static Integer getUId() {
MyUserEntity user = (MyUserEntity)SecurityUtils.getSubject().getPrincipal();
return user.getId();