1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-16 10:42:27 +08:00

fix issue

This commit is contained in:
_oah
2024-07-18 23:12:33 +08:00
5 changed files with 7 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ func (r *Client) UploadAttachment(filename string, mediaType string, attachmentT
}
var response []byte
var directory = filename
if response, err = util.PostFile("media", nil, "", directory, fmt.Sprintf(uploadTempFile, accessToken, mediaType)); err != nil {
if response, err = util.PostFile("media", nil, "", directory, fmt.Sprintf(uploadAttachment, accessToken, mediaType, attachmentType)); err != nil {
return nil, err
}
result := &UploadAttachmentResponse{}