Browse Source

update 时区+8

dev
lucas 2 weeks ago
parent
commit
443ebe112e
  1. 3
      adaptors/司南GNSS_MySql库to安心云.go

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

Loading…
Cancel
Save