From affb3e39d5cd5d2973bbb1389c8c3f4b20e4a438 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 20 Dec 2024 16:26:13 +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 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) {