mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix event flow panic
This commit is contained in:
parent
8258176fba
commit
5d071b034c
@ -52,7 +52,7 @@ func decodeGuildEventFlowPacket(c *QQClient, _ *network.IncomingPacketInfo, payl
|
||||
if m.Head.ContentHead.GetType() == 3841 {
|
||||
// todo: 回头 event flow 的处理移出去重构下逻辑, 先暂时这样方便改
|
||||
var common *msg.CommonElem
|
||||
if m.Body != nil {
|
||||
if m.Body != nil && m.Body.RichText != nil {
|
||||
for _, e := range m.Body.RichText.Elems {
|
||||
if e.CommonElem != nil {
|
||||
common = e.CommonElem
|
||||
|
Loading…
x
Reference in New Issue
Block a user