update
This commit is contained in:
parent
80b9ccf613
commit
145fbcd42e
@ -63,8 +63,14 @@ func PushMessage(target string, message interface{}) {
|
||||
|
||||
switch message.(type) {
|
||||
case ImageMessage:
|
||||
m := (message.(ImageMessage))
|
||||
m.Type = "image"
|
||||
message = m
|
||||
break
|
||||
case TextMessage:
|
||||
m := (message.(TextMessage))
|
||||
m.Type = "text"
|
||||
message = m
|
||||
break
|
||||
default:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user