From d44150ea1af4c33ad7efb02e74cc4f64077621e8 Mon Sep 17 00:00:00 2001 From: WhiteChi Date: Mon, 1 Jan 2024 00:42:47 +0800 Subject: [PATCH] =?UTF-8?q?`Shamrock`:=20=E5=9C=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=9F=90=E4=BA=9B=E5=AD=97=E6=AE=B5=E9=94=99=E8=AF=AF=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=B0=86=E5=AD=97=E6=AE=B5=E5=80=BC=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=B8=BA0=20#150?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remote/service/data/push/NoticeEvent.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/data/push/NoticeEvent.kt b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/data/push/NoticeEvent.kt index 1173a03..627df75 100644 --- a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/data/push/NoticeEvent.kt +++ b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/data/push/NoticeEvent.kt @@ -67,14 +67,14 @@ internal data class NoticeEvent( @SerialName("post_type") val postType: PostType, @SerialName("notice_type") val type: NoticeType, @SerialName("sub_type") val subType: NoticeSubType = NoticeSubType.None, - @SerialName("group_id") val groupId: Long = 0, - @SerialName("operator_id") val operatorId: Long = 0, - @SerialName("user_id") val userId: Long = 0, - @SerialName("sender_id") val senderId: Long = 0, + @SerialName("group_id") val groupId: Long = -1, + @SerialName("operator_id") val operatorId: Long = -1, + @SerialName("user_id") val userId: Long = -1, + @SerialName("sender_id") val senderId: Long = -1, @SerialName("duration") val duration: Int = -1, - @SerialName("message_id") val msgId: Int = 0, + @SerialName("message_id") val msgId: Int = -1, @SerialName("tip_text") val tip: String = "", - @SerialName("target_id") val target: Long = 0, + @SerialName("target_id") val target: Long = -1, @SerialName("file") val file: GroupFileMsg? = null, @SerialName("private_file") val privateFile: PrivateFileMsg? = null, @SerialName("flag") val flag: String? = null, @@ -104,8 +104,8 @@ internal data class RequestEvent( @SerialName("post_type") val postType: PostType, @SerialName("request_type") val type: RequestType, @SerialName("sub_type") val subType: RequestSubType = RequestSubType.None, - @SerialName("group_id") val groupId: Long = 0, - @SerialName("user_id") val userId: Long = 0, + @SerialName("group_id") val groupId: Long = -1, + @SerialName("user_id") val userId: Long = -1, @SerialName("comment") val comment: String = "", @SerialName("flag") val flag: String? = null, )