From ae5ee2729ef4024e55b1656e82f917f71ab5183f Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Thu, 8 Aug 2024 13:23:24 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=A1=A5=E5=85=85]12=E5=8F=B7=E7=BA=BF?= =?UTF-8?q?=E8=81=94=E9=94=81=E9=80=9A=E4=BF=A1=E5=BA=94=E7=AD=94=E5=99=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A7=A3=E6=9E=90=EF=BC=9B=20[=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]=E8=81=94=E9=94=81=E9=85=8D=E7=BD=AE=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=BD=A6=E7=AB=99=E7=BC=96=E5=8F=B7=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=BD=A6=E7=AB=99uid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fi/balise.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fi/balise.go b/fi/balise.go index dd6cc76..381b15e 100644 --- a/fi/balise.go +++ b/fi/balise.go @@ -25,7 +25,7 @@ func BaliseUpdateFixedTelegram(w ecs.World, id string, telegram []byte, userTele } // BaliseUpdateVariableTelegram 更新可变报文 -func BaliseUpdateVariableTelegram(w ecs.World, id string, telegram []byte, force bool) error { +func BaliseUpdateVariableTelegram(w ecs.World, id string, telegram []byte, userTelegram []byte, force bool) error { result := <-ecs.Request[ecs.EmptyType](w, func() ecs.Result[ecs.EmptyType] { wd := entity.GetWorldData(w) entry, ok := wd.EntityMap[id] @@ -38,6 +38,7 @@ func BaliseUpdateVariableTelegram(w ecs.World, id string, telegram []byte, force } baliseVariableTelegram := component.BaliseVariableTelegramType.Get(entry) baliseVariableTelegram.Telegram = telegram + baliseVariableTelegram.UserTelegram = userTelegram } else { ecs.NewErrResult(fmt.Errorf("应答器[%s]无可变报文组件", id)) }