mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
client: fix forward
This commit is contained in:
parent
03f3d34e3e
commit
9cb9e80d99
6
.github/workflows/goimports.yml
vendored
6
.github/workflows/goimports.yml
vendored
@ -25,12 +25,6 @@ jobs:
|
|||||||
GO111MODULE=off go get golang.org/x/tools/cmd/goimports
|
GO111MODULE=off go get golang.org/x/tools/cmd/goimports
|
||||||
goimports -l -w ./
|
goimports -l -w ./
|
||||||
|
|
||||||
- name: Static Check
|
|
||||||
uses: dominikh/staticcheck-action@v1.2.0
|
|
||||||
with:
|
|
||||||
install-go: false
|
|
||||||
version: "2022.1"
|
|
||||||
|
|
||||||
- name: Commit back
|
- name: Commit back
|
||||||
if: github.repository_owner == 'Mrs4s'
|
if: github.repository_owner == 'Mrs4s'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -184,7 +184,7 @@ func (c *QQClient) GetForwardMessage(resID string) *message.ForwardMessage {
|
|||||||
for _, item := range m.Items {
|
for _, item := range m.Items {
|
||||||
linker.items[item.GetFileName()] = item
|
linker.items[item.GetFileName()] = item
|
||||||
}
|
}
|
||||||
return linker.link(m.FileName)
|
return linker.link("MultiMsg")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement {
|
func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement {
|
||||||
@ -291,7 +291,7 @@ func (builder *ForwardMessageBuilder) Main(m *message.ForwardMessage) *message.F
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
content := forwardDisplay(rsp.MsgResid, filename, m.Preview(), fmt.Sprintf("查看 %d 条转发消息", m.Length()))
|
content := forwardDisplay(rsp.MsgResid, utils.RandomString(32), m.Preview(), fmt.Sprintf("查看 %d 条转发消息", m.Length()))
|
||||||
for i, ip := range rsp.Uint32UpIp {
|
for i, ip := range rsp.Uint32UpIp {
|
||||||
addr := highway.Addr{IP: uint32(ip), Port: int(rsp.Uint32UpPort[i])}
|
addr := highway.Addr{IP: uint32(ip), Port: int(rsp.Uint32UpPort[i])}
|
||||||
hash := md5.Sum(body)
|
hash := md5.Sum(body)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user