Roc 1 月之前
父節點
當前提交
a8d4659939
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      services/wechat_platform.go

+ 3 - 0
services/wechat_platform.go

@@ -468,6 +468,9 @@ func DelDoc(wechatArticleAbstractList []*rag.WechatArticleAbstract) (err error)
 	wechatArticleAbstractIdList := make([]int, 0)
 
 	for _, v := range wechatArticleAbstractList {
+		if v.VectorKey == `` {
+			continue
+		}
 		vectorKeyList = append(vectorKeyList, v.VectorKey)
 		wechatArticleAbstractIdList = append(wechatArticleAbstractIdList, v.WechatArticleAbstractId)
 	}