ca证书
This commit is contained in:
@@ -5,14 +5,12 @@ import (
|
||||
"encoding/binary"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/aceld/zinx/ziface"
|
||||
"omc/db"
|
||||
"omc/lib"
|
||||
"omc/model"
|
||||
"omc/omc"
|
||||
"time"
|
||||
|
||||
"github.com/aceld/zinx/ziface"
|
||||
)
|
||||
|
||||
func GenFile(request ziface.IRequest, meta *lib.FileMeta, data []OmcAlarm) {
|
||||
@@ -30,24 +28,15 @@ func GenFile(request ziface.IRequest, meta *lib.FileMeta, data []OmcAlarm) {
|
||||
return
|
||||
}
|
||||
|
||||
// add by simon at 2023/08/14
|
||||
fmt.Println("meta:", meta)
|
||||
if meta.ReqId == "" {
|
||||
meta.ReqId = "2"
|
||||
}
|
||||
//发送文件同步信息
|
||||
ackBody := omc.MsgBody{
|
||||
MsgName: "ackSyncAlarmFileResult",
|
||||
MsgName: "ackSyncOmcAlarmFileResult",
|
||||
Msg: make(map[string]string, 0),
|
||||
}
|
||||
ackBody.Msg["reqId"] = meta.ReqId
|
||||
ackBody.Keys = append(ackBody.Keys, "reqId")
|
||||
ackBody.Msg["result"] = "succ"
|
||||
ackBody.Keys = append(ackBody.Keys, "result")
|
||||
ackBody.Msg["fileName"] = file
|
||||
ackBody.Keys = append(ackBody.Keys, "fileName")
|
||||
ackBody.Msg["resDesc"] = "succ"
|
||||
ackBody.Keys = append(ackBody.Keys, "resDesc")
|
||||
ackBody.Msg["resDesc"] = ""
|
||||
ackBody.Pack()
|
||||
request.GetConnection().SendMsg(omc.AckSyncAlarmFileResult, ackBody.RawData)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user