From 7f7cf49587a7a6e06a83ae2b9ef5bd6ed570b93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Thu, 13 Aug 2026 15:11:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=B8=E6=88=8F=E5=8C=96=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=A1=A5=E5=85=A8=EF=BC=88=E8=BF=9B=E5=BA=A6=E7=82=B9?= =?UTF-8?q?/=E8=A7=92=E8=89=B2=E5=8D=A1/=E9=80=89=E9=A1=B9=E5=BD=A9?= =?UTF-8?q?=E8=89=B2=E8=BE=B9=E6=A1=86/=E5=8F=8D=E9=A6=88=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=EF=BC=89=EF=BC=8COptionVO=20=E9=80=8F=E5=87=BA=20audi?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biz/controller/level.go | 1 + biz/model/dto/level.go | 1 + biz/service/level.go | 2 ++ ui-src/src/pages/play/play.vue | 47 ++++++++++++++++++++++++++-------- 4 files changed, 41 insertions(+), 10 deletions(-) diff --git a/biz/controller/level.go b/biz/controller/level.go index 9fbab21..da70d1e 100644 --- a/biz/controller/level.go +++ b/biz/controller/level.go @@ -70,6 +70,7 @@ func nodeVO(n *service.Node) dto.NodeVO { TextPinyin: o.TextPinyin, FeedbackPros: o.FeedbackPros, FeedbackCons: o.FeedbackCons, + Audio: o.Audio, Prop: elementVO(o.Prop), }) } diff --git a/biz/model/dto/level.go b/biz/model/dto/level.go index a260fa8..43b156b 100644 --- a/biz/model/dto/level.go +++ b/biz/model/dto/level.go @@ -24,6 +24,7 @@ type OptionVO struct { TextPinyin string `json:"text_pinyin"` FeedbackPros string `json:"feedback_pros"` FeedbackCons string `json:"feedback_cons"` + Audio string `json:"audio"` Prop *ElementVO `json:"prop"` } diff --git a/biz/service/level.go b/biz/service/level.go index ab5d4bd..19f46ac 100644 --- a/biz/service/level.go +++ b/biz/service/level.go @@ -57,6 +57,7 @@ type Option struct { TextPinyin string FeedbackPros string FeedbackCons string + Audio string Prop *Element } @@ -233,6 +234,7 @@ func buildNode(nodeRec gdb.Record, optionRecs []gdb.Record, elements map[int64]* TextPinyin: o["text_pinyin"].String(), FeedbackPros: o["feedback_pros"].String(), FeedbackCons: o["feedback_cons"].String(), + Audio: o["audio"].String(), Prop: elements[o["prop_id"].Int64()], }) } diff --git a/ui-src/src/pages/play/play.vue b/ui-src/src/pages/play/play.vue index 5d68078..12450ae 100644 --- a/ui-src/src/pages/play/play.vue +++ b/ui-src/src/pages/play/play.vue @@ -224,37 +224,64 @@ export default {