Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
a16d531be3
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      app/svc/svc_medium_agent.go
  2. +1
    -1
      go.mod

+ 3
- 1
app/svc/svc_medium_agent.go View File

@@ -310,7 +310,9 @@ func GetMediumIdStr(c *gin.Context, admId int, name, account string) string {
appIds = append(appIds, utils.IntToStr(v.MediumId)) appIds = append(appIds, utils.IntToStr(v.MediumId))
ids = append(ids, utils.IntToStr(v.MediumId)) ids = append(ids, utils.IntToStr(v.MediumId))
} }
if len(list) == 0 { //为空就查全部
NewAdminDb := implement2.NewAdminDb(MasterDb(c))
super, _ := NewAdminDb.GetSuperAdmin()
if admId == 0 || admId == super.AdmId { //为空就查全部
appIds = []string{} appIds = []string{}
} }
if appId != "" { //不为空就判断 有没有在列表里面 if appId != "" { //不为空就判断 有没有在列表里面


+ 1
- 1
go.mod View File

@@ -36,7 +36,7 @@ require (
require ( require (
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 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/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.20241024113302-5f350a1a0c09
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241024124640-d373e083503a
github.com/jinzhu/copier v0.4.0 github.com/jinzhu/copier v0.4.0
) )




Loading…
Cancel
Save