Skip to content

Commit

Permalink
chore: code 401 -> null
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonLeeeaf committed Jun 8, 2024
1 parent d43f109 commit 7a52965
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .androidide/editor/openedFiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java",
"selection": {
"end": {
"column": 31,
"index": 5591,
"line": 138
"column": 39,
"index": 3614,
"line": 83
},
"start": {
"column": 31,
"index": 5591,
"line": 138
"column": 39,
"index": 3614,
"line": 83
}
}
},
Expand All @@ -46,5 +46,5 @@
}
}
],
"selectedFile": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle"
"selectedFile": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java"
}
5 changes: 3 additions & 2 deletions app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ protected void beforeHookedMethod(MethodHookParam mP) throws Throwable {
Object rawRes = XposedHelpers.getObjectField(res, "rawResponse");
XposedHelpers.setIntField(rawRes, "code", 200);
XposedBridge.log("[FuckMaoNemo] 拦截响应 " + code + " 码");
String t = "服务端返回响应码 " + code;
Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
String t = "响应码 " + code;
if (code != 401)
Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
}
}
}
Expand Down

0 comments on commit 7a52965

Please sign in to comment.