From 6a6bd7ec7eb51cd0079be4219bd4384894fa427b Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Sat, 7 Oct 2023 14:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=85=AC=E9=87=8C=E6=A0=87?= =?UTF-8?q?=E5=9D=90=E6=A0=87=E7=B3=BB=E8=BD=AC=E6=8D=A2=E7=9A=84=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jl-ecs-go | 2 +- repository/calculate.go | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) 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,