refactor: rename GenReply to GenReplyCQ for clarity and update SendMsg to use the new function; add GenPokePkg and GenGetGroupMemberListPkg for enhanced action handling
This commit is contained in:
@@ -31,7 +31,7 @@ func (am *actionManager) SendAction(action string) error {
|
||||
|
||||
func (am *actionManager) SendMsg(reply model.Reply) error {
|
||||
if reply.ReferOriginMsg {
|
||||
reply.ReplyMsg = fmt.Sprintf("%s%s", GenReply(reply.FromMsg.OriginMsgId, "", 0, 0, 0), reply.ReplyMsg)
|
||||
reply.ReplyMsg = fmt.Sprintf("%s%s", GenReplyCQ(reply.FromMsg.OriginMsgId, "", 0, 0, 0), reply.ReplyMsg)
|
||||
}
|
||||
sendPkg := model.GenSendPkg(reply.FromMsg.UserId, reply.FromMsg.GroupInfo.GroupId, reply.ReplyMsg, false)
|
||||
sendPkgJson, err := json.Marshal(sendPkg)
|
||||
|
||||
Reference in New Issue
Block a user