diff --git a/jl-ecs-go b/jl-ecs-go index 200352e..7ce0d9a 160000 --- a/jl-ecs-go +++ b/jl-ecs-go @@ -1 +1 @@ -Subproject commit 200352eb58f1704a741d367e3c8afd02ae492b58 +Subproject commit 7ce0d9aa7bf6cbbf045ef3aa57ec14d43a742906 diff --git a/repository/calculate.go b/repository/calculate.go index bc65c67..c577c30 100644 --- a/repository/calculate.go +++ b/repository/calculate.go @@ -1,8 +1,6 @@ package repository import ( - "errors" - "fmt" "joylink.club/rtsssimulation/repository/model/proto" ) @@ -33,9 +31,9 @@ func convertKilometer(repo *Repository, km *proto.Kilometer, cs string) (*proto. } else { value = targetCsKm.Value - offset } - if value < 0 { - return nil, errors.New(fmt.Sprintf("公里标[%s]转换为坐标系[%s]的公里标的值[%d]小于0", km, cs, value)) - } + //if value < 0 { + // return nil, errors.New(fmt.Sprintf("公里标[%s]转换为坐标系[%s]的公里标的值[%d]小于0", km, cs, value)) + //} return &proto.Kilometer{ Value: value, CoordinateSystem: cs,