Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
7115e80054
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/hdl/hdl_index.go

+ 4
- 0
app/hdl/hdl_index.go View File

@@ -26,12 +26,16 @@ func Base(c *gin.Context) {
res := map[string]string{
"account_id": utils.IntToStr(user.AdmId),
"name": name,
"is_super": "0",
"account": user.Username,
"logo": "",
"label": "",
"seo_logo": "",
"seo_title": "",
}
if user.IsSuperAdministrator == 1 {
res["is_super"] = "1"
}
NewAdminRoleDb := implement.NewAdminRoleDb(svc.MasterDb(c))
role, _ := NewAdminRoleDb.GetAdminRoleByAdminId(user.AdmId)
if role != nil {


Loading…
Cancel
Save