Skip to content

Commit

Permalink
修复QQ戳一戳消息返回不正常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nyancatda committed Nov 5, 2021
1 parent 8580e8d commit 7060cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InformationProcessing/QQMessageProcessing.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func QQsendTempdWikiInfo(WikiName string, UserID string, GroupID int, QueryText

//戳一戳消息处理
func QQNudgeEventMessageProcessing(json Struct.WebHookJson) {
UserID := json.Sender.Id
UserID := json.FromId
HelpText := Language.Message(sns_name_qq, strconv.Itoa(UserID)).HelpText
switch json.Subject.Kind {
case "Group":
Expand All @@ -60,7 +60,7 @@ func QQNudgeEventMessageProcessing(json Struct.WebHookJson) {
MessagePushAPI.SendMessage(sns_name_qq, "GroupAt", strconv.Itoa(json.Subject.Id), HelpText, false, "", strconv.Itoa(json.FromId), 0)
}
case "Friend":
go MessagePushAPI.SendMessage(sns_name_qq, "Friend", strconv.Itoa(json.FromId), HelpText, false, "", "", 0)
go MessagePushAPI.SendMessage(sns_name_qq, "Friend", strconv.Itoa(UserID), HelpText, false, "", "", 0)
}
}

Expand Down

0 comments on commit 7060cb8

Please sign in to comment.