Browse Source

过滤图片爬取逻辑

xiexiaoyuan 2 years ago
parent
commit
3de3680e9d
1 changed files with 3 additions and 6 deletions
  1. 3 6
      services/wework/wework_audit_linux.go

+ 3 - 6
services/wework/wework_audit_linux.go

@@ -4,14 +4,10 @@
 package wework
 
 import (
-	"bytes"
 	"errors"
 	"fmt"
 	"github.com/silenceper/wechat/v2/work/msgaudit"
 	"hongze/hongze_open_api/utils"
-	"io/ioutil"
-	"os"
-	"path"
 )
 
 func (w *WeWorkMsgAuditClient) GetMsgAuditContent(seq, limit uint64, timeout int) (list []msgaudit.TextMessage, seqRes uint64, errMsg error) {
@@ -36,7 +32,7 @@ func (w *WeWorkMsgAuditClient) GetMsgAuditContent(seq, limit uint64, timeout int
 			return
 		}
 		if chatInfo.Type == "image" {
-			image, _ := chatInfo.GetImageMessage()
+			/*image, _ := chatInfo.GetImageMessage()
 			sdkFileID := image.Image.SdkFileID
 
 			isFinish := false
@@ -64,7 +60,8 @@ func (w *WeWorkMsgAuditClient) GetMsgAuditContent(seq, limit uint64, timeout int
 				errMsg = errors.New("企业微信 文件存储失败:"+err.Error())
 				return
 			}
-			break
+			break*/
+			continue
 		}else if chatInfo.Type == "text" {
 			msg, err := chatInfo.GetTextMessage()
 			if err != nil {