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

新增支持流的形式上传方式

This commit is contained in:
_oah
2024-07-11 21:57:23 +08:00
parent 1138a7db0e
commit afaa30759a
7 changed files with 61 additions and 21 deletions

View File

@@ -53,9 +53,12 @@ func (content *Content) CheckImage(media string) error {
if err != nil {
return err
}
var directory = media
response, err := util.PostFile(
"media",
media,
nil,
"",
directory,
fmt.Sprintf(checkImageURL, accessToken),
)
if err != nil {