mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
fix decode error.
This commit is contained in:
parent
a407d93453
commit
0eb4eb738d
@ -426,8 +426,11 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
if content != "" {
|
if content != "" {
|
||||||
if elem.RichMsg.GetServiceId() == 35 {
|
if elem.RichMsg.GetServiceId() == 35 {
|
||||||
reg := regexp.MustCompile(`m_resid="(\w+?.*?)"`)
|
reg := regexp.MustCompile(`m_resid="(\w+?.*?)"`)
|
||||||
res = append(res, &ForwardElement{ResId: reg.FindAllStringSubmatch(content, -1)[0][1]})
|
sub := reg.FindAllStringSubmatch(content, -1)
|
||||||
continue
|
if len(sub) > 0 && len(sub[0]) > 1 {
|
||||||
|
res = append(res, &ForwardElement{ResId: reg.FindAllStringSubmatch(content, -1)[0][1]})
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if elem.RichMsg.GetServiceId() == 33 {
|
if elem.RichMsg.GetServiceId() == 33 {
|
||||||
continue // 前面一个 elem 已经解析到链接
|
continue // 前面一个 elem 已经解析到链接
|
||||||
|
Loading…
x
Reference in New Issue
Block a user