日志输出,空指针导致程序出错-测试接口

This commit is contained in:
lijun 2025-01-15 23:45:11 +08:00
parent 10c7a6fb18
commit 75d8492618
1 changed files with 1 additions and 0 deletions

View File

@ -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() {