mirror of
https://github.com/MoonLeeeaf/FuckMaoNemo.git
synced 2025-06-06 11:23:33 +08:00
This commit is contained in:
@@ -1,32 +1,17 @@
|
||||
{
|
||||
"allFiles": [
|
||||
{
|
||||
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml",
|
||||
"selection": {
|
||||
"end": {
|
||||
"column": 102,
|
||||
"index": 683,
|
||||
"line": 19
|
||||
},
|
||||
"start": {
|
||||
"column": 102,
|
||||
"index": 683,
|
||||
"line": 19
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java",
|
||||
"selection": {
|
||||
"end": {
|
||||
"column": 31,
|
||||
"index": 3660,
|
||||
"line": 84
|
||||
"column": 51,
|
||||
"index": 3944,
|
||||
"line": 90
|
||||
},
|
||||
"start": {
|
||||
"column": 31,
|
||||
"index": 3660,
|
||||
"line": 84
|
||||
"column": 51,
|
||||
"index": 3944,
|
||||
"line": 90
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,16 @@ public class Hook implements IXposedHookLoadPackage {
|
||||
XposedHelpers.setIntField(rawRes, "code", 200);
|
||||
XposedBridge.log("[FuckMaoNemo] 拦截响应 " + code + " 码");
|
||||
String t = "响应码 " + code;
|
||||
// Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
|
||||
switch (code) {
|
||||
case 401:
|
||||
t = "已阻止异常登出";
|
||||
break;
|
||||
case 405:
|
||||
case 422:
|
||||
t = "API 访问被拒绝,评论区或者已封禁账号?";
|
||||
break;
|
||||
}
|
||||
Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user