diff --git a/handler/tool.go b/handler/tool.go index b9820d5..4b52c6a 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -165,6 +165,7 @@ func subscribeAndHandleMessagesV3(ws *websocket.Conn, device_id int) { for { //从service获取当前帧 img, c := service.GetDeviceCurrentFrame(device_id) + c = count if c != count { //将img转[]byte if img.Empty() {