Commit 884c87e6 authored by 赵文静's avatar 赵文静

修改新闻播放

parent 2e1f8139
Pipeline #5252 passed with stage
in 0 seconds
...@@ -111,6 +111,7 @@ type Content struct { ...@@ -111,6 +111,7 @@ type Content struct {
Extra struct { Extra struct {
Dynasty string `json:"dynasty"` Dynasty string `json:"dynasty"`
ResType string `json:"resType"` ResType string `json:"resType"`
Source string `json:"source"`
} `json:"extra"` } `json:"extra"`
} }
......
...@@ -220,8 +220,8 @@ func newsDomain(params *model.SpeechDomainParams) []byte { ...@@ -220,8 +220,8 @@ func newsDomain(params *model.SpeechDomainParams) []byte {
res.ListItems = append(res.ListItems, map[string]interface{}{ res.ListItems = append(res.ListItems, map[string]interface{}{
"url": con.LinkUrl, "url": con.LinkUrl,
"title": con.Title, "title": con.Title,
"newsFrom": "", "newsFrom": con.Extra.Source,
"newsType": "", //"newsType": "",
}) })
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment