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

59 Commits

Author SHA1 Message Date
Mrs4s
e26832b72d
fix panic on upload unknown target image 2022-06-24 20:14:27 +08:00
wdvxdr
6e1792c6b1
client: don't return typed nil in UploadImage 2022-06-18 23:12:10 +08:00
wdvxdr
5b616d65f7
all: adapt new proto2 api 2022-05-24 09:59: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
abb3709a18
client: replace LogEvent with Logger 2022-03-01 22:52:22 +08:00
wdvxdr
ef65fd67e6
client: use unpackOIDBPackage 2022-03-01 16:45:01 +08:00
wdvxdr
76539e425d
client: avoid ReadAll in image ocr 2022-02-27 16:52:57 +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
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
0e68a1e7b7
client: merge fragmented private message 2022-02-14 16:27:17 +08:00
wdvxdr
d53bf8503e
client/pb: re-generate proto files 2022-02-14 00:51:36 +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
源文雨
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
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
wdvxdr
3e2b57eab5
internal/network: first version of transport send 2021-12-22 20:13:23 +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
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
7b125259d6
style: sort imports 2021-11-12 23:43:22 +08:00
Mrs4s
b644f5c158
feat: UploadGuildImage 2021-11-12 01:50:30 +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
Mrs4s
bf6cfc84c5
fix image ocr error. 2021-07-18 22:54:18 +08:00
wdvxdr
b93c02e18e
rf(message): refactor image & flash image [break-change]. 2021-07-18 11:32:51 +08:00
wdvxdr
7fe0b873c3
fix some issue with golangci-lint. 2021-07-15 21:33:30 +08:00
wdvxdr
4aa87a8ab8
dep: remove github.com/golang/protobuf 2021-06-11 14:23:46 +08:00
wdvxdr
d4f4def17d
Revert "feat: upload with sendfile"
This reverts commit cdb83e54
2021-06-11 13:27:35 +08:00
Mrs4s
f6579d20cd
use single thread upload group image. 2021-05-24 20:28:18 +08:00
Mrs4s
64c8b0583b
Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-05-03 14:44:04 +08:00
Mrs4s
f2530cc66b
feat: qidian protocol support. 2021-05-03 14:43:39 +08:00
wdvxdr
cdb83e5426
feat: upload with sendfile 2021-05-03 14:30:08 +08:00
takayama
69a30aa9d3 use https for image urls 2021-04-28 10:45:40 +09:00
wdvxdr
1813103b3f
fix(client): gif image 2021-04-25 20:59:05 +08:00
wdvxdr
69b3e62e0e
better error for upload failed 2021-04-23 15:43:35 +08:00
wdvxdr
2e64a6913d
zap: reuse some []byte
优化单线程上传内存使用
2021-04-15 21:36:14 +08:00
github-actions
0346596c71 ci(chore): Fix stylings 2021-04-04 08:19:16 +00:00
Mrs4s
0a81b76d23 use uploaded image to ocr request. 2021-04-04 16:18:45 +08:00
wdvxdr
f3beaae4e4
prealloc. 2021-03-23 20:49:17 +08:00