This commit is contained in:
walker 2023-10-09 15:04:52 +08:00
commit e58a655a26

View File

@ -118,7 +118,7 @@ func sectionMapToEcsLink(repo *repository.Repository, id string, offset int64, r
}
linkId, _ := strconv.Atoi(section.ALinkPosition().Link().Identity.Id())
trainKilometer := concertTrainKilometer(ak, offset, up)
if abDirection {
if ao < bo {
return int32(linkId), ao + offset, up, abDirection, trainKilometer
} else {
return int32(linkId), ao - offset, up, abDirection, trainKilometer