Skip to content

Commit f62e4a3

Browse files
committed
新增session.token登录,新增对SignServer的支持,登录提示更加详细
1 parent fa2b2b5 commit f62e4a3

File tree

14 files changed

+753
-220
lines changed

14 files changed

+753
-220
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ tmp
4848
dist/
4949
plugins/
5050
gmc_android.aar
51-
gmc_android-sources.jar
51+
gmc_android-sources.jar
52+
*.bat
53+
*.jar
54+
*.aar
55+
*.syso

dto_proto/http_dto.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ message CreateBotReq{
2828
string password = 2;
2929
int64 device_seed = 3; // 设备信息随机种子
3030
int32 client_protocol = 4; // 协议类型
31+
string sign_server = 5;
3132
}
3233
message CreateBotResp{
3334
}

go.mod

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,61 @@ module github.com/ProtobufBot/Go-Mirai-Client
33
go 1.20
44

55
require (
6-
github.com/Mrs4s/MiraiGo v0.0.0-20230319092203-62d60f132203
6+
github.com/BurntSushi/toml v1.3.2
7+
github.com/Mrs4s/MiraiGo v0.0.0-20230627090859-19e3d172596e
78
github.com/fanliao/go-promise v0.0.0-20141029170127-1890db352a72
8-
github.com/gin-gonic/gin v1.9.0
9+
github.com/gin-gonic/gin v1.9.1
910
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
1011
github.com/golang/protobuf v1.5.3
1112
github.com/gorilla/websocket v1.5.0
1213
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
1314
github.com/pkg/errors v0.9.1
1415
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
15-
github.com/sirupsen/logrus v1.9.0
16+
github.com/sirupsen/logrus v1.9.3
1617
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816
1718
github.com/tidwall/gjson v1.14.4
1819
github.com/zserge/lorca v0.1.10
19-
golang.org/x/mobile v0.0.0-20230301163155-e0f57694e12c
20-
google.golang.org/grpc v1.53.0
21-
google.golang.org/protobuf v1.30.0
20+
golang.org/x/mobile v0.0.0-20230531173138-3c911d8e3eda
21+
google.golang.org/grpc v1.56.1
22+
google.golang.org/protobuf v1.31.0
2223
)
2324

2425
require (
2526
github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d // indirect
2627
github.com/RomiChan/syncx v0.0.0-20220404072119-d7ea0ae15a4c // indirect
27-
github.com/bytedance/sonic v1.8.0 // indirect
28+
github.com/bytedance/sonic v1.9.1 // indirect
2829
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
2930
github.com/fumiama/imgsz v0.0.2 // indirect
31+
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
3032
github.com/gin-contrib/sse v0.1.0 // indirect
3133
github.com/go-playground/locales v0.14.1 // indirect
3234
github.com/go-playground/universal-translator v0.18.1 // indirect
33-
github.com/go-playground/validator/v10 v10.11.2 // indirect
34-
github.com/goccy/go-json v0.10.0 // indirect
35-
github.com/jonboulle/clockwork v0.3.0 // indirect
35+
github.com/go-playground/validator/v10 v10.14.0 // indirect
36+
github.com/goccy/go-json v0.10.2 // indirect
37+
github.com/jonboulle/clockwork v0.4.0 // indirect
3638
github.com/json-iterator/go v1.1.12 // indirect
37-
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
38-
github.com/leodido/go-urn v1.2.1 // indirect
39+
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
40+
github.com/kr/pretty v0.3.1 // indirect
41+
github.com/leodido/go-urn v1.2.4 // indirect
3942
github.com/lestrrat-go/strftime v1.0.6 // indirect
40-
github.com/mattn/go-isatty v0.0.17 // indirect
41-
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
43+
github.com/mattn/go-isatty v0.0.19 // indirect
44+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4245
github.com/modern-go/reflect2 v1.0.2 // indirect
43-
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
46+
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
4447
github.com/pierrec/lz4/v4 v4.1.15 // indirect
45-
github.com/smartystreets/goconvey v1.7.2 // indirect
48+
github.com/smartystreets/goconvey v1.8.0 // indirect
4649
github.com/tidwall/match v1.1.1 // indirect
4750
github.com/tidwall/pretty v1.2.0 // indirect
4851
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
49-
github.com/ugorji/go/codec v1.2.9 // indirect
50-
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
51-
golang.org/x/crypto v0.5.0 // indirect
52-
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
53-
golang.org/x/net v0.7.0 // indirect
54-
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect
55-
golang.org/x/sys v0.5.0 // indirect
56-
golang.org/x/text v0.7.0 // indirect
57-
golang.org/x/tools v0.1.12 // indirect
58-
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
52+
github.com/ugorji/go/codec v1.2.11 // indirect
53+
golang.org/x/arch v0.3.0 // indirect
54+
golang.org/x/crypto v0.9.0 // indirect
55+
golang.org/x/mod v0.9.0 // indirect
56+
golang.org/x/net v0.10.0 // indirect
57+
golang.org/x/sync v0.1.0 // indirect
58+
golang.org/x/sys v0.8.0 // indirect
59+
golang.org/x/text v0.9.0 // indirect
60+
golang.org/x/tools v0.7.0 // indirect
61+
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
5962
gopkg.in/yaml.v3 v3.0.1 // indirect
6063
)

0 commit comments

Comments
 (0)