1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

1276 Commits

Author SHA1 Message Date
wdvxdr
28637c41be
internal/proto: move binary.DynamicProtoMessage to proto.DynamicMessage 2022-02-10 21:56:40 +08:00
Mrs4s
5d071b034c
fix event flow panic 2022-02-09 17:25:29 +08:00
Phiomoe
8258176fba
Add MarketFaceElement case to message.ToString() (#241) 2022-02-07 19:51:33 +08:00
lz1998
a8788e826f fix ToGroupUin, ToGroupCode 2022-01-22 01:29:55 +08:00
Mrs4s
3b461554b7
fix highway memory leak 2022-01-18 00:50:08 +08:00
源文雨
38bb31b5a6
feat(image): drop redundant bytewise comparing of gif (#243)
* feat(image): drop rebundant bytewise comparing of gif

* feat(image): drop redundant bytewise comparing of gif
2022-01-15 18:37:26 +08:00
Mrs4s
c000bf3596
Merge pull request #230 from fumiama/master
fix(Mrs4s/go-cqhttp#1267): icmp need su permission
2022-01-15 17:17:29 +08:00
fumiama
49cec45733 fix: rename icmp to tcp 2022-01-15 17:15:27 +08:00
fumiama
82a55321e5 Merge branch 'master' of https://github.com/Mrs4s/MiraiGo 2022-01-15 11:12:02 +08:00
Lin
4f3862fd87 fix socket block (#236) 2022-01-15 11:11:48 +08:00
wdvxdr
7bec167fa7 Revert "message: remove GroupImage Width & Height"
This reverts commit 9d618e2d9f3e2231900661cec40ba84621975ab3.

handle zero width and height in another way.
2022-01-15 11:11:48 +08:00
wdvxdr
e22965eb0c message: remove GroupImage Width & Height
sometimes these fields may be zero causing send failures
2022-01-15 11:11:48 +08:00
源文雨
a5670ccc43
feat: use the decoder which only parses size info (#238)
* fix: add GroupImage Width & Height for webp

* fix: 简化写法

* feat: use imgsz package and drop image
2022-01-14 20:21:06 +08:00
lz1998
9a45e430f1
fix 0x545 (#242) 2022-01-14 20:16:41 +08:00
Lin
41a6cb05a7
fix socket block (#236) 2022-01-06 20:52:09 +08:00
wdvxdr
ab72f3dc28
Revert "message: remove GroupImage Width & Height"
This reverts commit 9d618e2d9f3e2231900661cec40ba84621975ab3.

handle zero width and height in another way.
2021-12-28 22:09:53 +08:00
wdvxdr
9d618e2d9f
message: remove GroupImage Width & Height
sometimes these fields may be zero causing send failures
2021-12-28 21:48:23 +08:00
fumiama
2c56abf4d8 fix: add wait 2021-12-26 14:15:10 +08:00
fumiama
b8023f445a feat: use tcp handshake to simulate icmp echo 2021-12-26 13:32:51 +08:00
fumiama
d72696a0c8 feat: use udp to simulate icmp echo 2021-12-26 13:08:38 +08:00
wdvxdr
9946b404ae
fix: heartbeat command name 2021-12-25 23:00:59 +08:00
Mrs4s
8ba8d118ae
Merge pull request #228 from wfjsw/patch-2
GuildSender的nickname给“我的频道昵称”
2021-12-25 17:56:25 +08:00
Jabasukuriputo Wang
a154a63772 GuildSender的nickname给“我的频道昵称” 2021-12-25 11:15:34 +08:00
wdvxdr
a3b4e1b994
client: move parse packet logic to transport 2021-12-24 17:18:42 +08:00
Mrs4s
dd17e12e1b
Merge pull request #227 from LXY1226/qr-param
feat: 现可使用不同的二维码生成参数获取二维码
2021-12-24 14:38:15 +08:00
LXY
6dd575b200
fix: FetchQRCode 2021-12-24 14:36:51 +08:00
LXY
1b3e84baf0
feat: change to FetchQRCodeCustomSize 2021-12-24 14:34:30 +08:00
Lin
b5697b24c5
feat: 现可使用不同的二维码生成参数获取二维码 2021-12-24 14:28:00 +08:00
wdvxdr
254eef3a5a
internal/oicq: reduce lambda 2021-12-24 14:22:10 +08:00
源文雨
cf864799cb
fix: WriteIntLvPacket length error (#226) 2021-12-23 23:04:13 +08:00
源文雨
3e84f279c1
fix: use general write at method (#225)
* fix: use general write at method

* fix: drop WriteShortBufLenExcludeSelfAfterPos
2021-12-23 22:09:04 +08:00
源文雨
b1279cf08f
perf(writer): drop some lambda expressions (#224)
* perf(writer): drop some lambda expressions

* perf(writer): drop more lambda expressions

* fix: resolve conflicts

* perf(writer): drop more lambda expressions

* fix: modify function name

* perf(writer): drop more lambda expressions

* fix: some error
2021-12-23 21:04:15 +08:00
wdvxdr
24b75e45c7
internal/oicq: refactor & support unmarshal 2021-12-23 17:04:37 +08:00
wdvxdr
5dfa4528dd
fix: fix group unmute all 2021-12-23 14:03:09 +08:00
风之凌殇
c51e1956e8
feat: add util function to split long message (#184)
* feat: add util function to split long message

* fix: move util to message/message.go to avoid import cycle

* fix: review opinions and add test
2021-12-23 12:57:18 +08:00
Sora233
ffc6cc1861
return init error (#208) 2021-12-23 12:56:04 +08:00
wdvxdr
d2dc2e472d
client: pack packet by transport 2021-12-22 22:47:00 +08:00
wdvxdr
3e2b57eab5
internal/network: first version of transport send 2021-12-22 20:13:23 +08:00
Mrs4s
21f8feb419
fix sso frame panic 2021-12-21 13:15:59 +08:00
wdvxdr
afb81a32aa
fix: fix private ptt 2021-12-19 15:29:30 +08:00
github-actions[bot]
72ffc08b72 ci(chore): Fix stylings 2021-12-18 09:39:50 +00:00
Mrs4s
39bea4b399
Merge pull request #222 from icarus-ai/master
石头剪子布&随机骰子
2021-12-18 17:39:29 +08:00
icarus-ai
e700751008
解析猜拳&随机骰子
安卓QQ发来的骰子Name值是随机骰子
2021-12-18 17:35:32 +08:00
icarus-ai
75d9c4deb4
石头剪子布
生成石头剪子布
2021-12-18 17:31:11 +08:00
wdvxdr
950567e4b7
refactor: move Device&loginSigInfo to internal/auth 2021-12-18 15:36:52 +08:00
wdvxdr
6b5ba9f9c4
refactor: move c.nextSeq to c.uniPacket 2021-12-17 23:50:30 +08:00
wdvxdr
1c29ac7d96
refactor: packets.BuildUniPacket -> c.uniPacket
mostly auto-generated by

```
rf '
ex {
    var c QQClient
    var seq uint16
    var payload []byte
    var command string
    BuildUniPacket(c.Uin, seq, command, 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) -> c.uniPacket(seq, command, payload)
}
'
```
2021-12-17 22:58:41 +08:00
wdvxdr
f464a0d474
fix: highway upload
caused by uin didn't set
2021-12-17 22:19:20 +08:00
Mrs4s
6179d2d351
fix: ignore guild msg sending by self 2021-12-17 21:43:42 +08:00
wdvxdr
cf49727531
fix: use go.uber.org/atomic to force atomic 2021-12-17 21:01:10 +08:00