Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Aug 18, 2021
1 parent eb2e523 commit 5879c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,14 @@ func SendNoti(req PackRequest, h *Handler, crypto bool, token string) error {
func PushToTarget(pack PackPush, id int, source string) {
var send PackRespNotification
send.Id = id
send.Target = pack.Target
send.Target = "," + pack.Target + ","
send.Time = pack.Time
send.Title = pack.Title
send.Content = pack.Content
send.Source = source
send.Token = pack.Token
for _, h := range Handlers {
if strings.Contains(pack.Target, "_global_") || strings.Contains(pack.Target, h.User.Name) {
if strings.Contains(pack.Target, ",_global_,") || strings.Contains(pack.Target, ","+h.User.Name+",") {
WritePackage(h.Conn, send, 5, "")
}
}
Expand Down

0 comments on commit 5879c57

Please sign in to comment.