From 95b9f0d4a3cd340fa7ac0ee441cc79bc10866632 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Sat, 22 Oct 2022 17:53:15 +0800 Subject: [PATCH] message pull --- pkg/common/db/mongoModel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/common/db/mongoModel.go b/pkg/common/db/mongoModel.go index c090dc9b8..04b56a0bf 100644 --- a/pkg/common/db/mongoModel.go +++ b/pkg/common/db/mongoModel.go @@ -290,6 +290,9 @@ func (d *DataBases) GetMsgBySeqListMongo2(uid string, seqList []uint32, operatio } } } + if len(hasSeqList) == 0 { + return nil, errors.New("pull message is null") + } if len(hasSeqList) != len(seqList) { var diff []uint32 diff = utils.Difference(hasSeqList, seqList)