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,6 +23,7 @@ class MainActivity : AudioServiceActivity() {
|
|||||||
if (call.method == "back") {
|
if (call.method == "back") {
|
||||||
back()
|
back()
|
||||||
} else if (call.method == "biliSendCommAntifraud") {
|
} else if (call.method == "biliSendCommAntifraud") {
|
||||||
|
try {
|
||||||
val action = call.argument<Int>("action") ?: 0
|
val action = call.argument<Int>("action") ?: 0
|
||||||
val oid = call.argument<Number>("oid") ?: 0L
|
val oid = call.argument<Number>("oid") ?: 0L
|
||||||
val type = call.argument<Int>("type") ?: 0
|
val type = call.argument<Int>("type") ?: 0
|
||||||
@@ -53,6 +54,7 @@ class MainActivity : AudioServiceActivity() {
|
|||||||
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