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
b3eabcdc
Commit
b3eabcdc
authored
Feb 07, 2020
by
Him188
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a8aded9b
99d297d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/OnlinePushPack.kt
...rai/qqandroid/network/protocol/data/jce/OnlinePushPack.kt
+3
-3
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/PacketFactory.kt
.../mirai/qqandroid/network/protocol/packet/PacketFactory.kt
+1
-0
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt
...ndroid/network/protocol/packet/chat/receive/OnlinePush.kt
+1
-1
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/data/jce/OnlinePushPack.kt
View file @
b3eabcdc
...
@@ -62,9 +62,9 @@ class OnlinePushPack {
...
@@ -62,9 +62,9 @@ class OnlinePushPack {
@SerialId
(
3
)
val
svrip
:
Int
?
=
0
,
@SerialId
(
3
)
val
svrip
:
Int
?
=
0
,
@SerialId
(
4
)
val
vSyncCookie
:
ByteArray
?
=
null
,
@SerialId
(
4
)
val
vSyncCookie
:
ByteArray
?
=
null
,
@SerialId
(
5
)
val
vUinPairMsg
:
List
<
UinPairMsg
>?
=
null
,
@SerialId
(
5
)
val
vUinPairMsg
:
List
<
UinPairMsg
>?
=
null
,
@SerialId
(
6
)
val
mPreviews
:
Map
<
String
,
ByteArray
>?
=
null
,
@SerialId
(
6
)
val
mPreviews
:
Map
<
String
,
ByteArray
>?
=
null
@SerialId
(
7
)
val
wUserActive
:
Int
?
=
null
,
//
@SerialId(7) val wUserActive: Int? = null,
@SerialId
(
12
)
val
wGeneralFlag
:
Int
?
=
null
//
@SerialId(12) val wGeneralFlag: Int? = null
)
:
JceStruct
)
:
JceStruct
@Serializable
@Serializable
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/PacketFactory.kt
View file @
b3eabcdc
...
@@ -131,6 +131,7 @@ internal object KnownPacketFactories {
...
@@ -131,6 +131,7 @@ internal object KnownPacketFactories {
object
IncomingFactories
:
List
<
IncomingPacketFactory
<
*
>>
by
mutableListOf
(
object
IncomingFactories
:
List
<
IncomingPacketFactory
<
*
>>
by
mutableListOf
(
OnlinePush
.
PbPushGroupMsg
,
OnlinePush
.
PbPushGroupMsg
,
OnlinePush
.
ReqPush
,
MessageSvc
.
PushNotify
,
MessageSvc
.
PushNotify
,
ConfigPushSvc
.
PushReq
ConfigPushSvc
.
PushReq
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt
View file @
b3eabcdc
...
@@ -80,10 +80,10 @@ internal class OnlinePush {
...
@@ -80,10 +80,10 @@ internal class OnlinePush {
@UseExperimental
(
ExperimentalStdlibApi
::
class
)
@UseExperimental
(
ExperimentalStdlibApi
::
class
)
override
suspend
fun
ByteReadPacket
.
decode
(
bot
:
QQAndroidBot
,
sequenceId
:
Int
):
Packet
{
override
suspend
fun
ByteReadPacket
.
decode
(
bot
:
QQAndroidBot
,
sequenceId
:
Int
):
Packet
{
val
reqPushMsg
=
decodeUniPacket
(
OnlinePushPack
.
SvcReqPushMsg
.
serializer
(),
"req"
)
val
reqPushMsg
=
decodeUniPacket
(
OnlinePushPack
.
SvcReqPushMsg
.
serializer
(),
"req"
)
println
(
reqPushMsg
.
contentToString
())
reqPushMsg
.
vMsgInfos
.
forEach
{
msgInfo
:
MsgInfo
->
reqPushMsg
.
vMsgInfos
.
forEach
{
msgInfo
:
MsgInfo
->
}
}
println
(
reqPushMsg
.
contentToString
())
return
NoPakcet
return
NoPakcet
}
}
...
...
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