mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-12-25 17:46:00 +08:00
fix g.Log()的使用
This commit is contained in:
@@ -56,7 +56,7 @@ func FilterAuthWithField(filterField string) func(m *gdb.Model) *gdb.Model {
|
||||
}
|
||||
|
||||
if role == nil {
|
||||
g.Log().Panicf(ctx, "failed to role information roleModel == nil")
|
||||
g.Log().Panic(ctx, "failed to role information roleModel == nil")
|
||||
}
|
||||
|
||||
sq := g.Model("admin_member").Fields("id")
|
||||
@@ -77,7 +77,7 @@ func FilterAuthWithField(filterField string) func(m *gdb.Model) *gdb.Model {
|
||||
case consts.RoleDataSelfAndAllSub: // 自己和全部下级
|
||||
m = m.WhereIn(filterField, GetSelfAndAllSub(co.User.Id))
|
||||
default:
|
||||
g.Log().Panicf(ctx, "dataScope is not registered")
|
||||
g.Log().Panic(ctx, "dataScope is not registered")
|
||||
}
|
||||
|
||||
return m
|
||||
|
||||
Reference in New Issue
Block a user