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