| | |
| | | |
| | | import ( |
| | | "basic.com/pubsub/protomsg.git" |
| | | "basic.com/valib/logger.git" |
| | | logger "github.com/alecthomas/log4go" |
| | | uuid "github.com/satori/go.uuid" |
| | | "ruleprocess/cache" |
| | | ) |
| | |
| | | if err != nil { |
| | | logger.Error("查询本机信息失败!") |
| | | } |
| | | logger.Info("localConfig信息:",localConfig) |
| | | //logger.Info("localConfig信息:",localConfig) |
| | | push.ServerId = localConfig.ServerId |
| | | push.ServerName = localConfig.ServerName |
| | | serverIp, err := GetLocalIP() |
| | |
| | | logger.Error("查询摄像机信息失败") |
| | | } |
| | | push.Cam = &camera |
| | | msg.Push.PushId = uuid.NewV4().String() |
| | | push.PushId = uuid.NewV4().String() |
| | | // 视频地址占位符 |
| | | //localConfig1, err := cache.GetServerInfo() |
| | | //if err != nil { |