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)) }