|
|
@@ -312,6 +312,23 @@ func GetMediumIdStr(c *gin.Context, admId int, name, account string) string { |
|
|
|
} |
|
|
|
NewAdminDb := implement2.NewAdminDb(MasterDb(c)) |
|
|
|
super, _ := NewAdminDb.GetSuperAdmin() |
|
|
|
if len(list) == 0 { |
|
|
|
user := GetUser(c) |
|
|
|
NewAppletApplicationDb := implement2.NewMediumDb(MasterDb(c)) |
|
|
|
appList := NewAppletApplicationDb.FindAllSuperAdmin() |
|
|
|
if appList != nil { |
|
|
|
for _, v := range *appList { |
|
|
|
if user.IsSuperAdministrator != 1 && user.ShowTime != "" { |
|
|
|
showTime := utils.TimeStdParseUnix(user.ShowTime + " 00:00:00") |
|
|
|
if utils.TimeStdParseUnix(v.CreateAt) >= showTime { |
|
|
|
appIds = append(appIds, utils.IntToStr(v.MediumId)) |
|
|
|
ids = append(ids, utils.IntToStr(v.MediumId)) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if admId == 0 || admId == super.AdmId { //为空就查全部 |
|
|
|
appIds = []string{} |
|
|
|
} |
|
|
|