From f3473a95c2d36bf4b6a99cf435035b8a9a330718 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 6 Jan 2024 10:49:36 +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_miyuan_real_news.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f9a79b6..942bc5e 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 @@ -65,7 +65,8 @@ func DataCollectCronMiyuanRealNews(types int) { } func To(str, str1, str2 string) string { tmp := strings.Split(str, str1) - if len(tmp) > 0 { + if len(tmp) > 1 { + tmp1 := strings.Split(tmp[1], str2) if len(tmp1) > 0 { return tmp1[0]