Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtsts-server-go
This commit is contained in:
commit
e58a655a26
@ -118,7 +118,7 @@ func sectionMapToEcsLink(repo *repository.Repository, id string, offset int64, r
|
|||||||
}
|
}
|
||||||
linkId, _ := strconv.Atoi(section.ALinkPosition().Link().Identity.Id())
|
linkId, _ := strconv.Atoi(section.ALinkPosition().Link().Identity.Id())
|
||||||
trainKilometer := concertTrainKilometer(ak, offset, up)
|
trainKilometer := concertTrainKilometer(ak, offset, up)
|
||||||
if abDirection {
|
if ao < bo {
|
||||||
return int32(linkId), ao + offset, up, abDirection, trainKilometer
|
return int32(linkId), ao + offset, up, abDirection, trainKilometer
|
||||||
} else {
|
} else {
|
||||||
return int32(linkId), ao - offset, up, abDirection, trainKilometer
|
return int32(linkId), ao - offset, up, abDirection, trainKilometer
|
||||||
|
Loading…
Reference in New Issue
Block a user