|
@@ -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 {
|