Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beta77 #214

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions handlers/send_group_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func handleSendGroupMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openap
mylog.Printf("发送组合消息失败: %v", err)
return // 或其他错误处理
}
if ret.Message.Ret == 22009 {
if ret != nil && ret.Message.Ret == 22009 {
mylog.Printf("信息发送失败,加入到队列中,下次被动信息进行发送")
var pair echo.MessageGroupPair
pair.Group = message.Params.GroupID.(string)
Expand Down Expand Up @@ -231,7 +231,7 @@ func handleSendGroupMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openap
if err != nil {
mylog.Printf("发送文本群组信息失败: %v", err)
}
if ret.Message.Ret == 22009 {
if ret != nil && ret.Message.Ret == 22009 {
mylog.Printf("信息发送失败,加入到队列中,下次被动信息进行发送")
var pair echo.MessageGroupPair
pair.Group = message.Params.GroupID.(string)
Expand Down Expand Up @@ -276,7 +276,7 @@ func handleSendGroupMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openap
if err != nil {
mylog.Printf("发送文本报错信息失败: %v", err)
}
if ret.Message.Ret == 22009 {
if ret != nil && ret.Message.Ret == 22009 {
mylog.Printf("信息发送失败,加入到队列中,下次被动信息进行发送")
var pair echo.MessageGroupPair
pair.Group = message.Params.GroupID.(string)
Expand Down Expand Up @@ -304,7 +304,7 @@ func handleSendGroupMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openap
if err != nil {
mylog.Printf("发送图片失败: %v", err)
}
if ret.Message.Ret == 22009 {
if ret != nil && ret.Message.Ret == 22009 {
mylog.Printf("信息发送失败,加入到队列中,下次被动信息进行发送")
var pair echo.MessageGroupPair
pair.Group = message.Params.GroupID.(string)
Expand Down Expand Up @@ -759,7 +759,7 @@ func SendStackMessages(apiv2 openapi.OpenAPI, messageid string, originalGroupID
}

// 检查错误码
if ret.Message.Ret == 22009 {
if ret != nil && ret.Message.Ret == 22009 {
mylog.Printf("信息再次发送失败,加入到队列中,下次被动信息进行发送")
echo.PushGlobalStack(pair)
}
Expand Down
Loading