File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed
Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/ProtobufBot/Go-Mirai-Client
33go 1.15
44
55require (
6- github.com/Mrs4s/MiraiGo v0.0.0-20201224180502-e884637ecc48
6+ github.com/Mrs4s/MiraiGo v0.0.0-20201231081106-eaa543ae8683
77 github.com/fanliao/go-promise v0.0.0-20141029170127-1890db352a72
88 github.com/gin-gonic/gin v1.6.3
99 github.com/go-playground/validator/v10 v10.4.1 // indirect
@@ -16,7 +16,7 @@ require (
1616 github.com/modern-go/reflect2 v1.0.1 // indirect
1717 github.com/sirupsen/logrus v1.7.0
1818 github.com/smartystreets/goconvey v1.6.4 // indirect
19- github.com/tidwall/gjson v1.6.6 // indirect
19+ github.com/tidwall/gjson v1.6.7 // indirect
2020 github.com/ugorji/go v1.2.2 // indirect
2121 golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect
2222 golang.org/x/sys v0.0.0-20201223074533-0d417f636930 // indirect
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ github.com/Mrs4s/MiraiGo v0.0.0-20201222081419-f128aa823218 h1:bvVacot8TD5lxjlN3
3232github.com/Mrs4s/MiraiGo v0.0.0-20201222081419-f128aa823218 /go.mod h1:7brUNAmygY22+PDCUiVT4MLeyvGHDBjW9f+67DKeHTw =
3333github.com/Mrs4s/MiraiGo v0.0.0-20201224180502-e884637ecc48 h1:MDol3A3sfJoql9X+g6j68Hd0KlTurR0VkPdXaErJlq0 =
3434github.com/Mrs4s/MiraiGo v0.0.0-20201224180502-e884637ecc48 /go.mod h1:7brUNAmygY22+PDCUiVT4MLeyvGHDBjW9f+67DKeHTw =
35+ github.com/Mrs4s/MiraiGo v0.0.0-20201231081106-eaa543ae8683 h1:Hh7GPsqvYzfS2sn7oCK5bv1cWGLO/bpLL16w5WBlWv0 =
36+ github.com/Mrs4s/MiraiGo v0.0.0-20201231081106-eaa543ae8683 /go.mod h1:7brUNAmygY22+PDCUiVT4MLeyvGHDBjW9f+67DKeHTw =
3537github.com/a8m/syncmap v0.0.0-20200818084611-4bbbd178de97 /go.mod h1:f3iF7/3t9i9hsYF8DPgT0XeIVyNzevhMCKf2445Q6pE =
3638github.com/census-instrumentation/opencensus-proto v0.2.1 /go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU =
3739github.com/client9/misspell v0.3.4 /go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw =
@@ -132,6 +134,8 @@ github.com/tidwall/gjson v1.6.5 h1:P/K9r+1pt9AK54uap7HcoIp6T3a7AoMg3v18tUis+Cg=
132134github.com/tidwall/gjson v1.6.5 /go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI =
133135github.com/tidwall/gjson v1.6.6 h1:Gh0D/kZV+L9rcuE2hE8Hn2dTYe2L6j6SKwcPlKpXAcs =
134136github.com/tidwall/gjson v1.6.6 /go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI =
137+ github.com/tidwall/gjson v1.6.7 h1:Mb1M9HZCRWEcXQ8ieJo7auYyyiSux6w9XN3AdTpxJrE =
138+ github.com/tidwall/gjson v1.6.7 /go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI =
135139github.com/tidwall/match v1.0.1 h1:PnKP62LPNxHKTwvHHZZzdOAOCtsJTjo6dZLCwpKm5xc =
136140github.com/tidwall/match v1.0.1 /go.mod h1:LujAq0jyVjBy028G1WhWfIzbpQfMO8bBZ6Tyb0+pL9E =
137141github.com/tidwall/match v1.0.2 h1:uuqvHuBGSedK7awZ2YoAtpnimfwBGFjHuWLuLqQj+bU =
Original file line number Diff line number Diff line change @@ -88,13 +88,6 @@ func ByteSliceToString(bs []byte) string {
8888 return * (* string )(unsafe .Pointer (& bs ))
8989}
9090
91- func Check (err error ) {
92- if err != nil {
93- log .Errorf ("遇到错误: %v" , err )
94- time .Sleep ()
95- }
96- }
97-
9891func ToGlobalId (code int64 , msgId int32 ) int32 {
9992 return int32 (crc32 .ChecksumIEEE ([]byte (fmt .Sprintf ("%d-%d" , code , msgId ))))
10093}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func InitDevice(path string) {
2727 client .SystemDeviceInfo .Model = []byte ("gmc" )
2828 client .SystemDeviceInfo .Brand = []byte ("pbbot" )
2929 client .SystemDeviceInfo .Product = []byte ("gmc" )
30- client .SystemDeviceInfo .Protocol = client .MacOS
30+ client .SystemDeviceInfo .Protocol = client .IPad
3131 _ = ioutil .WriteFile (path , client .SystemDeviceInfo .ToJson (), 0644 )
3232 log .Infof ("已生成设备信息并保存到 %s 文件." , path )
3333 }
You can’t perform that action at this time.
0 commit comments