合并上游更改

感谢:@821938089、@zhongerxll、@youke2580c、@Leroy-X、@Dark-Tide、@lhjgege、@3harmony、@mgz0227
This commit is contained in:
HapeLee committed 2025-09-01 00:57:17 +08:00
1 parent dccb72adab
commit 8eb4881767
87 files changed
+800 -365

No files matched your search

@@ -29,6 +29,7 @@ object SourceVerificationHelp {
* 获取书源验证结果
* 图片验证码 防爬 滑动验证码 点击字符 等等
*/
@Synchronized
fun getVerificationResult(
source: BaseSource?,
url: String,
@@ -38,9 +39,8 @@ object SourceVerificationHelp {
): String {
source
?: throw NoStackTraceException("getVerificationResult parameter source cannot be null")
if (isMainThread) {
error("getVerificationResult must be called on a background thread")
}
require(url.length < 64 * 1024) { "getVerificationResult parameter url too long" }
check(!isMainThread) { "getVerificationResult must be called on a background thread" }
clearResult(source.getKey())
@@ -84,6 +84,7 @@ object SourceVerificationHelp {
refetchAfterSuccess: Boolean? = true
) {
source ?: throw NoStackTraceException("startBrowser parameter source cannot be null")
require(url.length < 64 * 1024) { "startBrowser parameter url too long" }
appCtx.startActivity<WebViewActivity> {
putExtra("title", title)
putExtra("url", url)