From 884c87e6713408334c82841700c80f3e9d7a531a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=96=87=E9=9D=99?= <1319697849@qq.com> Date: Tue, 20 May 2025 16:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E9=97=BB=E6=92=AD?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/speech.go | 1 + service/speechNlu/domain.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/model/speech.go b/model/speech.go index 0c74f82..3294017 100644 --- a/model/speech.go +++ b/model/speech.go @@ -111,6 +111,7 @@ type Content struct { Extra struct { Dynasty string `json:"dynasty"` ResType string `json:"resType"` + Source string `json:"source"` } `json:"extra"` } diff --git a/service/speechNlu/domain.go b/service/speechNlu/domain.go index 5a8bcd2..7477b87 100644 --- a/service/speechNlu/domain.go +++ b/service/speechNlu/domain.go @@ -220,8 +220,8 @@ func newsDomain(params *model.SpeechDomainParams) []byte { res.ListItems = append(res.ListItems, map[string]interface{}{ "url": con.LinkUrl, "title": con.Title, - "newsFrom": "", - "newsType": "", + "newsFrom": con.Extra.Source, + //"newsType": "", }) } -- GitLab