diff --git a/app/hdl/hdl_index.go b/app/hdl/hdl_index.go index e76bc77..fb586b6 100644 --- a/app/hdl/hdl_index.go +++ b/app/hdl/hdl_index.go @@ -35,7 +35,7 @@ func Base(c *gin.Context) { NewAdminRoleDb := implement.NewAdminRoleDb(svc.MasterDb(c)) role, _ := NewAdminRoleDb.GetAdminRoleByAdminId(user.AdmId) if role != nil { - NewRoleDb := implement.NewRoleDb(svc.MasterDb(c), user.AdmId) + NewRoleDb := implement.NewRoleDb(svc.MasterDb(c), role.RoleId) getRole, _ := NewRoleDb.GetRole() if getRole != nil { res["logo"] = getRole.Logo