From 849f3a7a1fbe85041f71db769905cdb9b942a626 Mon Sep 17 00:00:00 2001 From: leafmoes <44945631+leafmoes@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:06:55 +0800 Subject: [PATCH] Update Pangu.kt --- app/src/main/java/cc/microblock/hook/Pangu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/cc/microblock/hook/Pangu.kt b/app/src/main/java/cc/microblock/hook/Pangu.kt index 6f82a6199e..011d1fd7be 100644 --- a/app/src/main/java/cc/microblock/hook/Pangu.kt +++ b/app/src/main/java/cc/microblock/hook/Pangu.kt @@ -177,7 +177,7 @@ object SendPangu : CommonSwitchFunctionHook("sendMsgPangu", arrayOf(AIOTextEleme override fun initOnce(): Boolean { DexKit.requireMethodFromCache(AIOTextElementCtor) .hookBefore(this) { - val inputStrFieldName = if (requireMinQQVersion(QQVersion.QQ_9_0_65)) "e" else "a" + val inputStrFieldName = if (requireMinQQVersion(QQVersion.QQ_9_0_56)) "e" else "a" val content = it.args[0].get(inputStrFieldName) as String if (!content.startsWith(",,") && !content.startsWith(",,")) it.args[0].set(inputStrFieldName, processPangu(content))