From 2f9c36a1aefa67e627346ec03a190c0792e29806 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Wed, 17 Jan 2024 18:18:40 +0800 Subject: [PATCH] fix: fix SnapShotPicture type field --- internal/api/msg.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index bc9600bf5..6bb9aeffb 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -445,9 +445,8 @@ func (m *MessageApi) CallbackExample(c *gin.Context) { text.BigPicture.Type = arr[1] } - if strings.Contains(text.SnapshotPicture.Type, "/") { - arr := strings.Split(text.SnapshotPicture.Type, "/") - text.SnapshotPicture.Type = arr[1] + if len(text.SnapshotPicture.Type) == 0 { + text.SnapshotPicture.Type = text.SourcePicture.Type } mapStruct := make(map[string]any)