huangjiajun pirms 1 nedēļas
vecāks
revīzija
7115e80054
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      app/hdl/hdl_index.go

+ 4
- 0
app/hdl/hdl_index.go Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt