fix upload file
This commit is contained in:
parent
7d2fd2fe33
commit
7d037f9e03
@ -383,6 +383,11 @@ func (c *Client) WebWxUploadMediaByChunk(file *os.File, request *BaseRequest, in
|
||||
if chunks > 1 {
|
||||
content["chunks"] = strconv.FormatInt(chunks, 10)
|
||||
}
|
||||
|
||||
if _, err = file.Seek(0, 0); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// 分块上传
|
||||
for chunk := 0; int64(chunk) < chunks; chunk++ {
|
||||
|
||||
|
16
doc/doc.md
16
doc/doc.md
@ -284,6 +284,22 @@ dispatcher.OnVoice(handlers ...MessageContextHandler)
|
||||
|
||||
|
||||
|
||||
###### 注册消息类型为`好友添加`的处理函数
|
||||
|
||||
```go
|
||||
dispatcher.OnFriendAdd(handlers ...MessageContextHandler)
|
||||
```
|
||||
|
||||
|
||||
|
||||
###### 注册消息类型为`Card`的处理函数
|
||||
|
||||
```go
|
||||
dispatcher.OnCard(handlers ...MessageContextHandler)
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### 登陆用户
|
||||
|
Loading…
x
Reference in New Issue
Block a user