|
|
@@ -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 { |
|
|
|