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{},