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