Skip to content

Commit

Permalink
Beta74 (#212)
Browse files Browse the repository at this point in the history
* beta74

* beta74
  • Loading branch information
Hoshinonyaruko authored Dec 4, 2023
1 parent 2cee39b commit 2ce2343
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handlers/send_group_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func handleSendGroupMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openap
mylog.Printf("GetLazyMessagesId: %v", messageID)
if messageID != "" {
//尝试发送栈内信息
SendStackMessages(apiv2)
SendStackMessages(apiv2, messageID)
}
}
if messageID == "" {
Expand Down Expand Up @@ -737,7 +737,7 @@ func uploadMedia(ctx context.Context, groupID string, richMediaMessage *dto.Rich
}

// 发送栈中的消息
func SendStackMessages(apiv2 openapi.OpenAPI) {
func SendStackMessages(apiv2 openapi.OpenAPI, messageid string) {
count := config.GetAtoPCount()
pairs := echo.PopGlobalStackMulti(count)
for _, pair := range pairs {
Expand All @@ -746,6 +746,7 @@ func SendStackMessages(apiv2 openapi.OpenAPI) {
msgseq := echo.GetMappingSeq(messageID)
echo.AddMappingSeq(messageID, msgseq+1)
pair.GroupMessage.MsgSeq = msgseq + 1
pair.GroupMessage.MsgID = messageid
ret, err := apiv2.PostGroupMessage(context.TODO(), pair.Group, pair.GroupMessage)
if err != nil {
mylog.Printf("发送组合消息失败: %v", err)
Expand Down

0 comments on commit 2ce2343

Please sign in to comment.