This commit is contained in:
Jay 2018-09-10 21:54:01 +08:00
parent 80b9ccf613
commit 145fbcd42e
2 changed files with 6 additions and 0 deletions

View File

@ -63,8 +63,14 @@ func PushMessage(target string, message interface{}) {
switch message.(type) { switch message.(type) {
case ImageMessage: case ImageMessage:
m := (message.(ImageMessage))
m.Type = "image"
message = m
break break
case TextMessage: case TextMessage:
m := (message.(TextMessage))
m.Type = "text"
message = m
break break
default: default:
return return