From 655a0712af53b18d1eeb73eee309af12b2142b5a Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Thu, 11 Jan 2024 10:59:02 +0800 Subject: [PATCH] =?UTF-8?q?link=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=B8=8Elink?= =?UTF-8?q?=E4=B8=8A=E8=AE=BE=E5=A4=87=E7=9A=84=E5=85=B3=E8=81=94=EF=BC=88?= =?UTF-8?q?=E4=BB=A5=E6=AD=A4=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=BA=94=E7=AD=94?= =?UTF-8?q?=E5=99=A8=E7=A7=BB=E4=BD=8D=E5=8F=AF=E4=BB=A5=E8=B6=8A=E8=BF=87?= =?UTF-8?q?=E7=9B=B8=E9=82=BB=E5=BA=94=E7=AD=94=E5=99=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/repository_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repository/repository_manager.go b/repository/repository_manager.go index abf2432..c24366d 100644 --- a/repository/repository_manager.go +++ b/repository/repository_manager.go @@ -681,6 +681,7 @@ func findEndTurnoutPortOrEndKm(repo *Repository, link *Link, startTp *TurnoutPor break } } + link.bindDevices(devices...) return endTp, endKm, err } @@ -751,6 +752,7 @@ func relateDevicesAndLink(repo *Repository, link *Link, startKm *proto.Kilometer case proto.DeviceType_DeviceType_Transponder: device.(*Transponder).bindLinkPosition(linkPosition) } + link.bindDevices(device) } return nil }