From 443ebe112ed88d31b12477f180d96f77698a8ca9 Mon Sep 17 00:00:00 2001 From: lucas Date: Fri, 27 Dec 2024 10:39:54 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=97=B6=E5=8C=BA+8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adaptors/司南GNSS_MySql库to安心云.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adaptors/司南GNSS_MySql库to安心云.go b/adaptors/司南GNSS_MySql库to安心云.go index 80cf393..2fbf5f0 100644 --- a/adaptors/司南GNSS_MySql库to安心云.go +++ b/adaptors/司南GNSS_MySql库to安心云.go @@ -5,6 +5,7 @@ import ( "fmt" "goInOut/consumers/SinoGnssMySQL" "strconv" + "time" ) // Adaptor_SINOMYSQL_AXYMQTT 数据 转换 江苏农村公路桥梁监测系统 @@ -19,7 +20,7 @@ func (the Adaptor_SINOMYSQL_AXYMQTT) Transform(gnssDataList []SinoGnssMySQL.Gnss OnceDxFiles = append(OnceDxFiles, SinoGnssMySQL.DxFile{ Module: gnssData.StationName, Channel: 1, - Timespan: gnssData.Time.UnixMilli(), + Timespan: gnssData.Time.Add(8 * time.Hour).UnixMilli(), //file_mqtt协议里面只解析RV, m=> mm RawValue: []float64{gnssData.X * 1000, gnssData.Y * 1000, gnssData.H * 1000}, LimitValue: []float64{},