1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-07-04 03:02:13 +08:00
parent 4dcb03c9dc
commit eb69a26017

View File

@ -297,7 +297,7 @@ func Show(m *ice.Message, file string) bool {
p := SHARE_LOCAL + file p := SHARE_LOCAL + file
kit.If(m.Option(ice.MSG_USERPOD), func(pod string) { p = kit.MergeURL(p, ice.POD, pod) }) kit.If(m.Option(ice.MSG_USERPOD), func(pod string) { p = kit.MergeURL(p, ice.POD, pod) })
switch strings.ToLower(kit.Ext(file)) { switch strings.ToLower(kit.Ext(file)) {
case PNG, JPG, JPEG: case PNG, JPG, JPEG, "gif":
m.EchoImages(p) m.EchoImages(p)
case MP4, MOV: case MP4, MOV:
m.EchoVideos(p) m.EchoVideos(p)