Skip to content

Commit

Permalink
去除我的页面福利钱包卡片
Browse files Browse the repository at this point in the history
  • Loading branch information
AoEiuV020 committed Jan 1, 2025
1 parent 1904556 commit 7dd54fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hook/src/main/java/cc/aoeiuv020/hookfanqie/MainHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
var cardType = (Enum<?>) XposedHelpers.getObjectField(param.args[0], "a");
if (Objects.equals(cardType.name(), "EC_MAIL")) {
// 我的页面商城广告卡片,
param.setResult(null);
} else if (Objects.equals(cardType.name(), "POLARIS")) {
// 我的页面福利钱包卡片,
param.setResult(null);
}
}
Expand Down

0 comments on commit 7dd54fc

Please sign in to comment.