From d957c6034a9db12595760d1015428cd2e6d45fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=96=87=E9=9D=99?= <1319697849@qq.com> Date: Mon, 19 May 2025 15:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E4=B8=8D=E4=BF=AE=E6=94=B9type?= =?UTF-8?q?=E7=9C=8B=E6=98=AF=E5=90=A6=E8=83=BD=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/speechNlu/domain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/speechNlu/domain.go b/service/speechNlu/domain.go index ae32bdc..8c60740 100644 --- a/service/speechNlu/domain.go +++ b/service/speechNlu/domain.go @@ -248,7 +248,7 @@ func ancientpoemDomain(params *model.SpeechDomainParams) []byte { res.ListItems = append(res.ListItems, map[string]interface{}{ "content": params.SpeechWsResp.Dm.Widget.Extra.ContentTranslation, "title": params.SpeechWsResp.Dm.Widget.Extra.Title, - "type": "TEXT", //原来是 TEXT,看看是否能播放 + "type": params.SpeechWsResp.Dm.Widget.Type, //原来是 TEXT,看看是否能播放 "url": "", "mediaId": "", }) @@ -287,7 +287,7 @@ func ancientpoemDomain(params *model.SpeechDomainParams) []byte { "author": con.Author, "dynasty": con.Extra.Dynasty, "mediaId": "", - "type": "AUDIO", //原来是 AUDIO,看看是否能播放 + "type": params.SpeechWsResp.Dm.Widget.Type, //原来是 AUDIO,看看是否能播放 }) } } -- GitLab