Skip to content

Commit

Permalink
Update Pangu.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
leafmoes authored Oct 1, 2024
1 parent 60dde10 commit 849f3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/cc/microblock/hook/Pangu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 849f3a7

Please sign in to comment.