1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-07-04 13:23:25 +00:00

83 Commits

Author SHA1 Message Date
76c0d90577 client: delete Memo in GroupInfo&support string intern 2022-05-23 12:18:22 +08:00
27c591e3cb fix: update qidian protocol version 2022-05-10 04:03:08 +08:00
c0be2d9698 typo: rename TCPListener to TCPClient 2022-05-09 22:06:55 +08:00
1b7e3d8580 binary: better bce for NewTeaCipher 2022-04-14 21:37:04 +08:00
e2a42e5425 client: seek start 0 before upload 2022-03-28 15:27:59 +08:00
33590e4b32 highway: rename BdhInput and Input to Transaction 2022-03-28 13:13:06 +08:00
9422ce4751 all: optimize
detected by go-perfguard
2022-03-27 22:42:48 +08:00
665c6acf02 client: use net/netip
netip包中的数据结构更省内存,而且不需要堆分配
2022-03-22 22:44:37 +08:00
2dfc8f0cbc delete useless code (#262) 2022-03-18 23:22:11 +08:00
bc4e9f3c95 client: delete GetVipInfo
This api is broken.
2022-03-18 21:14:45 +08:00
4a007cfcf9 all: rewrite interface{} to any
generated by `gofmt -w -r 'interface{} -> any' .`
2022-03-17 10:52:03 +08:00
15a746802b network,highway: move HeadBodyFrame to highway
This code only used by highway
2022-03-01 13:39:27 +08:00
ca4580dad5 highway: refactor multi thread uploading 2022-02-27 16:46:11 +08:00
e6ad62569d Revert "highway: use io.ReadSeeker and disable multi-thread upload"
This reverts commit a2d65a2bb6.

This commit break video uploading.
2022-02-27 14:14:18 +08:00
a2d65a2bb6 highway: use io.ReadSeeker and disable multi-thread upload 2022-02-25 22:18:52 +08:00
3555d23136 network: remove unnecessary sync.Pool 2022-02-25 21:21:21 +08:00
c515024783 highway: reduce memcpy, memalloc by using net.Buffers 2022-02-23 22:19:01 +08:00
fb2d3d28f0 client: remove similar code 2022-02-23 19:28:02 +08:00
5e8a512698 client: allow multi-thread upload without cache file
Delete `UploadGroupImageByFile` since `UploadGroupImage` can multi-thread upload
2022-02-20 23:26:07 +08:00
bd6f8947ef client: minor update 2022-02-18 18:13:55 +08:00
3b461554b7 fix highway memory leak 2022-01-18 00:50:08 +08:00
Lin
41a6cb05a7 fix socket block (#236) 2022-01-06 20:52:09 +08:00
a3b4e1b994 client: move parse packet logic to transport 2021-12-24 17:18:42 +08:00
254eef3a5a internal/oicq: reduce lambda 2021-12-24 14:22:10 +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
24b75e45c7 internal/oicq: refactor & support unmarshal 2021-12-23 17:04:37 +08:00
d2dc2e472d client: pack packet by transport 2021-12-22 22:47:00 +08:00
3e2b57eab5 internal/network: first version of transport send 2021-12-22 20:13:23 +08:00
950567e4b7 refactor: move Device&loginSigInfo to internal/auth 2021-12-18 15:36:52 +08:00
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
f464a0d474 fix: highway upload
caused by uin didn't set
2021-12-17 22:19:20 +08:00
b398cec6a5 refactor: move highway.go to client/internal/highway 2021-12-15 19:13:52 +08:00