fix crash

This commit is contained in:
白池 2024-03-28 19:27:11 +08:00 committed by GitHub
parent c014e85faa
commit 5cbb695a66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -39,7 +39,7 @@ class AntiDetection: IAction {
if (ShamrockConfig[AntiJvmTrace]) if (ShamrockConfig[AntiJvmTrace])
antiTrace() antiTrace()
antiMemoryWalking() antiMemoryWalking()
antiO3Report() //antiO3Report()
} }
private fun antiO3Report() { private fun antiO3Report() {

View File

@ -9,11 +9,13 @@ import qq.service.QQInterfaces
object SwitchStatus: IInteract, QQInterfaces() { object SwitchStatus: IInteract, QQInterfaces() {
override fun invoke(intent: Intent) { override fun invoke(intent: Intent) {
if (app.isLogin) {
AppTalker.talk("switch_status") { AppTalker.talk("switch_status") {
put("account", app.currentAccountUin) put("account", app.currentAccountUin)
put("nickname", if (app is QQAppInterface) app.currentNickname else "unknown") put("nickname", if (app is QQAppInterface) (app.currentNickname ?: "unknown") else "unknown")
put("voice", NativeLoader.isVoiceLoaded) put("voice", NativeLoader.isVoiceLoaded)
put("core_version", ShamrockVersion) put("core_version", ShamrockVersion)
} }
} }
}
} }