From 76f513eff9cefec80fc55bf870f2df4b804899a5 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 18 Dec 2024 18:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_data_center_original_data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/svc/svc_data_center_original_data.go b/app/svc/svc_data_center_original_data.go index 60e04f0..689d4e8 100644 --- a/app/svc/svc_data_center_original_data.go +++ b/app/svc/svc_data_center_original_data.go @@ -84,8 +84,7 @@ func OriginalDataMoreApplication(c *gin.Context, req md.DataCenterOriginalDataMo engine := MasterDb(c) NewAppletApplicationAdSpaceListDb := implement2.NewAppletApplicationAdSpaceListDb(engine) user := GetUser(c) - appId := GetAppletIdByAdminId(c, user.AdmId, req.Name, "", "") - + appId := GetMediumIdStr(c, user.AdmId, req.Name, "") MediumList, total, _ := NewAppletApplicationAdSpaceListDb.FindAppletApplicationAdSpaceList(req.Name, "", "", "", appId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) data := make([]md.DataCenterOriginalDataMoreApplicationData, 0) if len(MediumList) > 0 { @@ -394,6 +393,7 @@ func GetAppletId(c *gin.Context, name, platform, appId string) string { } return appIds } + func GetAppletIdByAdminId(c *gin.Context, admId int, name, platform, appIdStr string) string { appId := GetAppletId(c, name, platform, appIdStr) appIds := []string{"-1"}