Browse Source

更新

master
huangjiajun 1 week ago
parent
commit
e2a1cfa508
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/svc/svc_data_center.go

+ 2
- 2
app/svc/svc_data_center.go View File

@@ -152,13 +152,13 @@ func DataCenterRecordOutPut(c *gin.Context, req md.DataCenterRecordOutPutReq) {
} }
var app []model2.AppletApplication var app []model2.AppletApplication
appMap := make(map[string]model2.AppletApplication) appMap := make(map[string]model2.AppletApplication)
MasterDb(c).In("app_id=?", appId).Find(&app)
MasterDb(c).In("app_id", appId).Find(&app)
for _, v := range app { for _, v := range app {
appMap[v.AppId] = v appMap[v.AppId] = v
} }
var ad []model2.AppletApplicationAdSpaceList var ad []model2.AppletApplicationAdSpaceList
adMap := make(map[string]model2.AppletApplicationAdSpaceList) adMap := make(map[string]model2.AppletApplicationAdSpaceList)
MasterDb(c).In("ad_id=?", adId).Find(&adMap)
MasterDb(c).In("ad_id", adId).Find(&adMap)
for _, v := range ad { for _, v := range ad {
adMap[v.AdId] = v adMap[v.AdId] = v
} }


Loading…
Cancel
Save