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]