1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-07 03:30:24 +08:00

fix multipart

This commit is contained in:
源文雨
2023-10-16 12:14:39 +09:00
parent 731f8ab89e
commit 8cb79c5058
2 changed files with 43 additions and 5 deletions

View File

@@ -154,7 +154,7 @@ func (bot *Bot) postMessageTo(ep string, content *MessagePost) (*Message, error)
tag = "file_image"
}
msg = append(msg, tag)
if xi.Kind() == reflect.Struct {
if xi.Kind() == reflect.Pointer && xi.Elem().Kind() == reflect.Struct {
data, err := json.Marshal(xi.Interface())
if err != nil {
return nil, err