Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
b7be5b0b
Commit
b7be5b0b
authored
Nov 28, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments
parent
2bf0a963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/action/GroupImage.kt
...oe.mirai/network/protocol/tim/packet/action/GroupImage.kt
+3
-1
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/action/GroupImage.kt
View file @
b7be5b0b
...
@@ -123,6 +123,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
...
@@ -123,6 +123,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
@SerialId
(
5
)
val
const2
:
Short
=
0
x0E2D
,
@SerialId
(
5
)
val
const2
:
Short
=
0
x0E2D
,
@SerialId
(
6
)
val
const3
:
ByteArray
=
constValue3
,
@SerialId
(
6
)
val
const3
:
ByteArray
=
constValue3
,
@SerialId
(
7
)
val
const4
:
Byte
=
1
,
@SerialId
(
7
)
val
const4
:
Byte
=
1
,
// 8 is missing
@SerialId
(
9
)
val
const5
:
Byte
=
1
,
@SerialId
(
9
)
val
const5
:
Byte
=
1
,
@SerialId
(
10
)
val
width
:
Int
,
@SerialId
(
10
)
val
width
:
Int
,
@SerialId
(
11
)
val
height
:
Int
,
@SerialId
(
11
)
val
height
:
Int
,
...
@@ -160,6 +161,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
...
@@ -160,6 +161,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
@SerialId
(
16
)
val
height
:
Int
,
@SerialId
(
16
)
val
height
:
Int
,
@SerialId
(
17
)
val
width
:
Int
,
@SerialId
(
17
)
val
width
:
Int
,
@SerialId
(
18
)
val
const12
:
Int
=
1003
,
//?? 有时候还是1000, 1004
@SerialId
(
18
)
val
const12
:
Int
=
1003
,
//?? 有时候还是1000, 1004
// 19 is missing
@SerialId
(
20
)
val
const13
:
Byte
=
1
@SerialId
(
20
)
val
const13
:
Byte
=
1
)
)
}
}
...
@@ -209,7 +211,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
...
@@ -209,7 +211,7 @@ object GroupImagePacket : SessionPacketFactory<GroupImageResponse>() {
protoObj
=
RequestLinkProto
(
protoObj
=
RequestLinkProto
(
body
=
RequestLinkProto
.
Body
(
body
=
RequestLinkProto
.
Body
(
bot
=
bot
.
toInt
(),
// same bin representation, so will be decoded correctly as a unsigned value in the server
bot
=
bot
.
toInt
(),
// same bin representation, so will be decoded correctly as a unsigned value in the server
group
=
bot
.
toInt
(),
group
=
bot
.
toInt
(),
// it's no need to pass a real group (internal) id
uniqueId
=
imageId
.
uniqueId
.
toInt
(),
uniqueId
=
imageId
.
uniqueId
.
toInt
(),
md5
=
imageId
.
md5
,
md5
=
imageId
.
md5
,
height
=
imageId
.
height
,
height
=
imageId
.
height
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment