mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +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 {
|
if m.Head.ContentHead.GetType() == 3841 {
|
||||||
// todo: 回头 event flow 的处理移出去重构下逻辑, 先暂时这样方便改
|
// todo: 回头 event flow 的处理移出去重构下逻辑, 先暂时这样方便改
|
||||||
var common *msg.CommonElem
|
var common *msg.CommonElem
|
||||||
if m.Body != nil {
|
if m.Body != nil && m.Body.RichText != nil {
|
||||||
for _, e := range m.Body.RichText.Elems {
|
for _, e := range m.Body.RichText.Elems {
|
||||||
if e.CommonElem != nil {
|
if e.CommonElem != nil {
|
||||||
common = e.CommonElem
|
common = e.CommonElem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user