fix: curly brace syntax in YukiHookAPI

This commit is contained in:
2024-06-20 09:42:26 +08:00
parent 04405c5a53
commit e8754c7ede

View File

@@ -460,13 +460,13 @@ object YukiHookAPI {
*/
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
isLoadedFromBaseContext = true
if (HookApiCategoryHelper.hasAvailableHookApi)
if (HookApiCategoryHelper.hasAvailableHookApi) {
if (baseContext != null)
if (hooker.isNotEmpty()) {
printSplashInfo()
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true)
else printNotFoundHookApiError()
} else printNotFoundHookApiError()
}
/** 输出欢迎信息调试日志 */