From 6d9477b720f2ba12b85b3007e2a07777eca9e01b Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 31 三月 2020 17:30:36 +0800
Subject: [PATCH] 调整picid和infoid的校验

---
 shmqueue.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/shmqueue.go b/shmqueue.go
index 8c5b3a4..489c38e 100644
--- a/shmqueue.go
+++ b/shmqueue.go
@@ -164,7 +164,8 @@
 	var elems []ElemInfo
 
 	for i := 0; i < len(eqi.EsCaches); i++ {
-		if eqi.EsCaches[i].value.PicId != 0 && eqi.EsCaches[i].value.InfoId != 0 {
+		if eqi.EsCaches[i].value.PicId != -1 && eqi.EsCaches[i].value.InfoId != -1 &&
+			eqi.EsCaches[i].value.PicId != 0 && eqi.EsCaches[i].value.InfoId != 0 {
 			elems = append(elems, eqi.EsCaches[i].value)
 		}
 	}

--
Gitblit v1.8.0