mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
mod: try-catch biliSendCommAntifraud
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -23,36 +23,38 @@ class MainActivity : AudioServiceActivity() {
|
|||||||
if (call.method == "back") {
|
if (call.method == "back") {
|
||||||
back()
|
back()
|
||||||
} else if (call.method == "biliSendCommAntifraud") {
|
} else if (call.method == "biliSendCommAntifraud") {
|
||||||
val action = call.argument<Int>("action") ?: 0
|
try {
|
||||||
val oid = call.argument<Number>("oid") ?: 0L
|
val action = call.argument<Int>("action") ?: 0
|
||||||
val type = call.argument<Int>("type") ?: 0
|
val oid = call.argument<Number>("oid") ?: 0L
|
||||||
val rpid = call.argument<Number>("rpid") ?: 0L
|
val type = call.argument<Int>("type") ?: 0
|
||||||
val root = call.argument<Number>("root") ?: 0L
|
val rpid = call.argument<Number>("rpid") ?: 0L
|
||||||
val parent = call.argument<Number>("parent") ?: 0L
|
val root = call.argument<Number>("root") ?: 0L
|
||||||
val ctime = call.argument<Number>("ctime") ?: 0L
|
val parent = call.argument<Number>("parent") ?: 0L
|
||||||
val commentText = call.argument<String>("comment_text") ?: ""
|
val ctime = call.argument<Number>("ctime") ?: 0L
|
||||||
val pictures = call.argument<String?>("pictures")
|
val commentText = call.argument<String>("comment_text") ?: ""
|
||||||
val sourceId = call.argument<String>("source_id") ?: ""
|
val pictures = call.argument<String?>("pictures")
|
||||||
val uid = call.argument<Number>("uid") ?: 0L
|
val sourceId = call.argument<String>("source_id") ?: ""
|
||||||
val cookies = call.argument<List<String>>("cookies") ?: emptyList<String>()
|
val uid = call.argument<Number>("uid") ?: 0L
|
||||||
|
val cookies = call.argument<List<String>>("cookies") ?: emptyList<String>()
|
||||||
|
|
||||||
val intent = Intent().apply {
|
val intent = Intent().apply {
|
||||||
component = ComponentName("icu.freedomIntrovert.biliSendCommAntifraud", "icu.freedomIntrovert.biliSendCommAntifraud.ByXposedLaunchedActivity")
|
component = ComponentName("icu.freedomIntrovert.biliSendCommAntifraud", "icu.freedomIntrovert.biliSendCommAntifraud.ByXposedLaunchedActivity")
|
||||||
putExtra("action", action)
|
putExtra("action", action)
|
||||||
putExtra("oid", oid.toLong())
|
putExtra("oid", oid.toLong())
|
||||||
putExtra("type", type)
|
putExtra("type", type)
|
||||||
putExtra("rpid", rpid.toLong())
|
putExtra("rpid", rpid.toLong())
|
||||||
putExtra("root", root.toLong())
|
putExtra("root", root.toLong())
|
||||||
putExtra("parent", parent.toLong())
|
putExtra("parent", parent.toLong())
|
||||||
putExtra("ctime", ctime.toLong())
|
putExtra("ctime", ctime.toLong())
|
||||||
putExtra("comment_text", commentText)
|
putExtra("comment_text", commentText)
|
||||||
if(pictures != null)
|
if(pictures != null)
|
||||||
putExtra("pictures", pictures)
|
putExtra("pictures", pictures)
|
||||||
putExtra("source_id", sourceId)
|
putExtra("source_id", sourceId)
|
||||||
putExtra("uid", uid.toLong())
|
putExtra("uid", uid.toLong())
|
||||||
putStringArrayListExtra("cookies", ArrayList(cookies))
|
putStringArrayListExtra("cookies", ArrayList(cookies))
|
||||||
}
|
}
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {}
|
||||||
} else {
|
} else {
|
||||||
result.notImplemented()
|
result.notImplemented()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ abstract class ReplyController extends CommonController {
|
|||||||
'ctime': ctime,
|
'ctime': ctime,
|
||||||
'comment_text': message,
|
'comment_text': message,
|
||||||
if (pictures.isNotEmpty == true) 'pictures': jsonEncode(pictures),
|
if (pictures.isNotEmpty == true) 'pictures': jsonEncode(pictures),
|
||||||
'source_id': sourceId,
|
'source_id': '$sourceId',
|
||||||
'uid': mid,
|
'uid': mid,
|
||||||
'cookies': [cookieString],
|
'cookies': [cookieString],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user