diff --git a/app/svc/svc_data_center_original_data.go b/app/svc/svc_data_center_original_data.go index 673576a..ff13cc8 100644 --- a/app/svc/svc_data_center_original_data.go +++ b/app/svc/svc_data_center_original_data.go @@ -298,7 +298,7 @@ func OriginalDataMoreApplicationDoing(c *gin.Context, req md.DataCenterOriginalD ComponentAppid: wxOpenThirdPartyAppList.Appid, ComponentAppsecret: wxOpenThirdPartyAppList.AppSecret, } - if k+1 == len(req.Ids) { + if k+1 == len(ids) { arg.IsEnd = "1" } err := ch.PublishV2(md.AdOriginalData, utils.SerializeStr(arg), md.AdOriginalDataApplication) @@ -309,7 +309,7 @@ func OriginalDataMoreApplicationDoing(c *gin.Context, req md.DataCenterOriginalD if len(ids) == 0 { return e.NewErr(400000, "选择的广告位已存在,请删除后再生成") } - cache.SetEx(c.GetString("mid")+":original.wx.ad.data", "1", 3600) + cache.SetEx(c.GetString("mid")+":original.wx.ad.data", "1", 300) return nil } func OriginalDataOneApplicationTotal(c *gin.Context, req md.DataCenterOriginalDataOneApplicationDoingReq) {