Skip to content

Commit

Permalink
fix location message judge (#481)
Browse files Browse the repository at this point in the history
Co-authored-by: 万聂青 <[email protected]>
  • Loading branch information
eatmoreapple and Ivy8253948 authored Apr 21, 2024
1 parent 184c854 commit edc6d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (m *Message) IsText() bool {
}

func (m *Message) IsLocation() bool {
return m.MsgType == MsgTypeText && strings.Contains(m.Url, "api.map.qq.com") && strings.Contains(m.Content, "pictype=location")
return m.MsgType == MsgTypeText && strings.Contains(m.Url, "apis.map.qq.com") && strings.Contains(m.Content, "pictype=location")
}

func (m *Message) IsRealtimeLocation() bool {
Expand Down

0 comments on commit edc6d33

Please sign in to comment.