Explorar el Código

更新

master
huangjiajun hace 1 semana
padre
commit
a16d531be3
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. +3
    -1
      app/svc/svc_medium_agent.go
  2. +1
    -1
      go.mod

+ 3
- 1
app/svc/svc_medium_agent.go Ver fichero

@@ -310,7 +310,9 @@ func GetMediumIdStr(c *gin.Context, admId int, name, account string) string {
appIds = append(appIds, 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{}
}
if appId != "" { //不为空就判断 有没有在列表里面


+ 1
- 1
go.mod Ver fichero

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



Cargando…
Cancelar
Guardar