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

49 Commits

Author SHA1 Message Date
wdvxdr
5b616d65f7
all: adapt new proto2 api 2022-05-24 09:59:58 +08:00
wdvxdr
e2a42e5425
client: seek start 0 before upload 2022-03-28 15:27:59 +08:00
wdvxdr
4f05838b6c
fix nil in multi reader 2022-03-28 13:35:58 +08:00
wdvxdr
33590e4b32
highway: rename BdhInput and Input to Transaction 2022-03-28 13:13:06 +08:00
wdvxdr
714961d68f
client: use %x placeholder 2022-03-20 13:48:02 +08:00
wdvxdr
5903226f25
client: remove some err check
`(*bytes.Buffer).Write` always return nil error, so we don't need error check
2022-03-19 10:03:37 +08:00
wdvxdr
4a007cfcf9
all: rewrite interface{} to any
generated by `gofmt -w -r 'interface{} -> any' .`
2022-03-17 10:52:03 +08:00
wdvxdr
ca4580dad5
highway: refactor multi thread uploading 2022-02-27 16:46:11 +08:00
wdvxdr
e6ad62569d
Revert "highway: use io.ReadSeeker and disable multi-thread upload"
This reverts commit a2d65a2bb68227a493b1fe390e4ab77a95ff4234.

This commit break video uploading.
2022-02-27 14:14:18 +08:00
wdvxdr
a2d65a2bb6
highway: use io.ReadSeeker and disable multi-thread upload 2022-02-25 22:18:52 +08:00
wdvxdr
6b5e7d35f0
client: new API UploadImage, UploadVoice and deprecate old API 2022-02-21 23:35:44 +08:00
wdvxdr
1e32793eef
client: combine upload group video and guild video 2022-02-21 17:31:05 +08:00
wdvxdr
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
wdvxdr
3e2b57eab5
internal/network: first version of transport send 2021-12-22 20:13:23 +08:00
wdvxdr
afb81a32aa
fix: fix private ptt 2021-12-19 15:29:30 +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
8b99d3147e
style: fix issues reported by golangci-lint 2021-12-16 20:21:49 +08:00
wdvxdr
6c1b622107
remove PttStore.GroupPttUp 2021-12-16 14:27:26 +08:00
wdvxdr
b398cec6a5
refactor: move highway.go to client/internal/highway 2021-12-15 19:13:52 +08:00
wdvxdr
ec4cd4a6f3
style: internal/proto
use this package for conveniently replacing proto package
in the future.
2021-11-22 22:05:19 +08:00
wdvxdr
19e2050004
feat: upload guild short video 2021-11-18 21:28:17 +08:00
wdvxdr
7b125259d6
style: sort imports 2021-11-12 23:43:22 +08:00
github-actions[bot]
89b2d4e2ba ci(chore): Fix stylings 2021-11-01 18:45:12 +00:00
Mrs4s
2350d04f0f
style: rename package protocol to internal 2021-11-02 02:44:20 +08:00
github-actions[bot]
5f967df1ed ci(chore): Fix stylings 2021-10-30 09:12:18 +00:00
Mrs4s
90392f27c5
feat: GetGroupImageDownloadUrl impl 2021-10-30 17:11:39 +08:00
wdvxdr
624a7e4101
feat: upload waiter. 2021-07-29 19:22:18 +08:00
wdvxdr
7fe0b873c3
fix some issue with golangci-lint. 2021-07-15 21:33:30 +08:00
Mrs4s
f2530cc66b
feat: qidian protocol support. 2021-05-03 14:43:39 +08:00
wdvxdr
2e64a6913d
zap: reuse some []byte
优化单线程上传内存使用
2021-04-15 21:36:14 +08:00
wdvxdr
86e0f3327a
use io.ReadSeeker in upload private voice 2021-04-13 20:10:26 +08:00
wdvxdr
f3beaae4e4
prealloc. 2021-03-23 20:49:17 +08:00
Mrs4s
6c17f296a9 optimize decoder params. 2021-03-04 15:21:32 +08:00
wdvxdr
63027b5a66
fix private ptt 2021-03-02 16:39:59 +08:00
github-actions
65ab1304e6 ci(chore): Fix stylings 2021-02-14 03:06:03 +00:00
wdvxdr
a94171c5c4 fix err shadow 2021-01-09 20:52:41 +08:00
Mrs4s
bcedac03af fix private image. 2021-01-09 03:24:29 +08:00
Mrs4s
ce4834c2ba fix file lock. 2021-01-08 00:37:50 +08:00
Mrs4s
a1f7d5962e feature video multi-threading upload & multi-threading upload encrypt support. 2021-01-08 00:25:08 +08:00
Mrs4s
7605dc4635 feature short video upload & sending. 2021-01-07 23:57:45 +08:00
Mrs4s
33199f6fae feature use bdh channel upload group image. 2021-01-02 02:43:19 +08:00
Mrs4s
dd94cc86c5 feature upload ptt by highway. 2020-12-31 15:43:06 +08:00
Mrs4s
97fa8a53b5 update entity. 2020-11-25 20:55:26 +08:00
wfjsw
02eb1c6357 better error support 2020-11-25 13:14:55 +08:00
Mrs4s
03652b0425 convert msg to proto2. 2020-11-18 21:22:21 +08:00
Mrs4s
517ddcd50b feature: private recall. 2020-10-17 16:37:49 +08:00
Mrs4s
626e23d99c feature: private ptt. 2020-10-16 01:09:24 +08:00
Mrs4s
cee229f738 move ptt. 2020-10-16 00:13:03 +08:00