修改token判断
This commit is contained in:
parent
3a124aa778
commit
c6adc376c8
@ -56,6 +56,18 @@ func Auth() gin.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
if adminUser.IsDisabled == 1 {
|
||||
responses.FailWithMessage("用户已禁用", c)
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
if adminUser.IsDeleted == 1 {
|
||||
responses.FailWithMessage("用户错误", c)
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
// 获取角色数据
|
||||
adminRoleDao := dao.AdminRoleDao{}
|
||||
adminRole, err := adminRoleDao.GetAdminRoleFirstById(roleId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user