Roc há 1 mês atrás
pai
commit
a8d4659939
1 ficheiros alterados com 3 adições e 0 exclusões
  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)
 	}