重构
This commit is contained in:
@@ -6,15 +6,15 @@ import (
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"omc/handle/model"
|
||||
"time"
|
||||
|
||||
"github.com/aceld/zinx/zconf"
|
||||
"github.com/aceld/zinx/zlog"
|
||||
"gorm.io/driver/mysql"
|
||||
"gorm.io/gorm"
|
||||
"io"
|
||||
"net"
|
||||
"omc/model"
|
||||
"omc/omc"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
@@ -156,7 +156,7 @@ func (this *TcpClient) Start() {
|
||||
//data = "reqSyncAlarmFile;reqId=35;alarmSeq=2000;syncSource=1"
|
||||
//data = "reqSyncAlarmFile;reqId=33;startTime=2023-01-08 00:00:00;syncSource=0"
|
||||
data = "reqSyncAlarmFile;reqId=34;startTime=2023-01-08 16:07:00;endTime=2023-07-19 23:59:59;syncSource=1"
|
||||
this.SendMsg(omc.ReqSyncAlarmFile, []byte(data))
|
||||
this.SendMsg(11, []byte(data))
|
||||
go this.Receive()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user