From 2d59d4c9c1d6f53b22ad1ccd15f82ccf5babfcf6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 3 Jan 2024 14:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=9C=9C=E6=BA=90=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=87=87=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/task/svc/svc_data_collect_cron_haodanku_real_news.go | 2 ++ app/task/svc/svc_data_collect_cron_miyuan_real_news.go | 1 + 2 files changed, 3 insertions(+) diff --git a/app/task/svc/svc_data_collect_cron_haodanku_real_news.go b/app/task/svc/svc_data_collect_cron_haodanku_real_news.go index 11221f1..a2427b8 100644 --- a/app/task/svc/svc_data_collect_cron_haodanku_real_news.go +++ b/app/task/svc/svc_data_collect_cron_haodanku_real_news.go @@ -33,6 +33,8 @@ func DataCollectCronHaodankuRealNews(types int) { third_zm_app_secret := sysCfgDb.SysCfgGetOneData("third_zm_app_secret") for _, v := range ids { for i := 1; i <= num; i++ { + time.Sleep(time.Microsecond * 10) // 等待10毫秒 + tianMaoChaoZhiData, err := haodanku.HaodankuRealTime(utils.IntToStr(v), utils.IntToStr(i), utils.IntToStr(size), "") if err != nil { return diff --git a/app/task/svc/svc_data_collect_cron_miyuan_real_news.go b/app/task/svc/svc_data_collect_cron_miyuan_real_news.go index 7cb4a91..f9a79b6 100644 --- a/app/task/svc/svc_data_collect_cron_miyuan_real_news.go +++ b/app/task/svc/svc_data_collect_cron_miyuan_real_news.go @@ -27,6 +27,7 @@ func DataCollectCronMiyuanRealNews(types int) { fmt.Println("============", time.Since(now)) for _, v := range ids { for i := 1; i <= num; i++ { + time.Sleep(time.Microsecond * 10) // 等待10毫秒 newsData, err := gzmiyuan.GetGzmiRealData(utils.IntToStr(size), utils.IntToStr(i), v) if newsData == nil || err != nil { continue