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

Merge branch 'feature_add_stream_upload' into v2

# Conflicts:
#	officialaccount/material/material.go
#	util/http.go
This commit is contained in:
_oah
2024-07-18 08:47:41 +08:00
7 changed files with 73 additions and 54 deletions

View File

@@ -163,7 +163,7 @@ type resAddMaterial struct {
}
// AddMaterialFromReader 上传永久性素材(处理视频需要单独上传),从 io.Reader 中读取
func (material *Material) AddMaterialFromReader(mediaType MediaType, filename string, reader io.Reader) (mediaID string, url string, err error) {
func (material *Material) AddMaterialFromReader(mediaType MediaType, filename string) (mediaID string, url string, err error) {
if mediaType == MediaTypeVideo {
err = errors.New("永久视频素材上传使用 AddVideo 方法")
return