Browse Source

更新

master
huangjiajun 1 day ago
parent
commit
a99ad05c80
2 changed files with 18 additions and 1 deletions
  1. +17
    -0
      app/svc/svc_medium_agent.go
  2. +1
    -1
      go.mod

+ 17
- 0
app/svc/svc_medium_agent.go View File

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


+ 1
- 1
go.mod View File

@@ -35,7 +35,7 @@ require (
require (
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git v1.1.21-0.20240830072333-a1980ffb256e
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241104033828-ce3223d3e794
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241104060107-b89d15ebb7fd
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/gin-contrib/cors v1.7.2
github.com/jinzhu/copier v0.4.0


Loading…
Cancel
Save