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
680de13f
Commit
680de13f
authored
Sep 01, 2019
by
Him188moe
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
af761d89
f7541c19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt
...c/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt
+15
-1
No files found.
mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt
View file @
680de13f
...
...
@@ -146,7 +146,21 @@ class ServerFriendMessageEventPacket(input: DataInputStream, packetId: ByteArray
var
qq
:
Int
=
0
lateinit
var
message
:
String
@ExperimentalUnsignedTypes
override
fun
decode
()
{
TODO
(
"FRIEND 解析"
)
//start at Sep1.0:27
qq
=
input
.
readInt
()
val
msgLength
=
input
.
readShort
(
22
)
val
fontLength
=
input
.
readShort
(
93
+
msgLength
)
val
offset
=
msgLength
+
fontLength
message
=
if
(
input
.
readByte
(
97
+
offset
).
toUHexString
()
==
"02"
){
"[face"
+
input
.
goto
(
103
+
offset
).
readVarString
(
1
)
+
".gif]"
//.gif
}
else
{
val
offset2
=
input
.
readShort
(
101
+
offset
)
input
.
goto
(
103
+
offset
).
readVarString
(
offset2
.
toInt
())
}
// TODO("FRIEND 解析")
}
}
\ No newline at end of file
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