@@ -124,10 +124,10 @@ func HandleSendGroupMsg(cli *client.QQClient, req *onebot.SendGroupMsgReq) *oneb
124124 sendingMessage := & message.SendingMessage {Elements : miraiMsg }
125125 log .Infof ("Bot(%d) Group(%d) <- %s" , cli .Uin , req .GroupId , MiraiMsgToRawMsg (miraiMsg ))
126126 preProcessGroupSendingMessage (cli , req .GroupId , sendingMessage )
127- ret := cli .SendGroupMessage (req .GroupId , sendingMessage , config .FRAGMENT )
127+ ret := cli .SendGroupMessage (req .GroupId , sendingMessage , config .Fragment )
128128 if ret == nil || ret .Id == - 1 {
129- config .FRAGMENT = ! config .FRAGMENT
130- log .Warnf ("发送群消息失败,可能被风控,下次发送将改变分片策略,FRAGMENT : %+v" , config .FRAGMENT )
129+ config .Fragment = ! config .Fragment
130+ log .Warnf ("发送群消息失败,可能被风控,下次发送将改变分片策略,Fragment : %+v" , config .Fragment )
131131 return nil
132132 }
133133 cache .GroupMessageLru .Add (ret .Id , ret )
@@ -155,10 +155,10 @@ func HandleSendMsg(cli *client.QQClient, req *onebot.SendMsgReq) *onebot.SendMsg
155155
156156 if req .GroupId != 0 { // 群
157157 preProcessGroupSendingMessage (cli , req .GroupId , sendingMessage )
158- ret := cli .SendGroupMessage (req .GroupId , sendingMessage , config .FRAGMENT )
158+ ret := cli .SendGroupMessage (req .GroupId , sendingMessage , config .Fragment )
159159 if ret == nil || ret .Id == - 1 {
160- config .FRAGMENT = ! config .FRAGMENT
161- log .Warnf ("发送群消息失败,可能被风控,下次发送将改变分片策略,FRAGMENT : %+v" , config .FRAGMENT )
160+ config .Fragment = ! config .Fragment
161+ log .Warnf ("发送群消息失败,可能被风控,下次发送将改变分片策略,Fragment : %+v" , config .Fragment )
162162 return nil
163163 }
164164 cache .GroupMessageLru .Add (ret .Id , ret )
0 commit comments