|
|
@ -314,6 +314,9 @@ class AnalyzeUrl( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 访问网站,返回StrResponse |
|
|
|
|
|
|
|
*/ |
|
|
|
suspend fun getStrResponse( |
|
|
|
suspend fun getStrResponse( |
|
|
|
jsStr: String? = null, |
|
|
|
jsStr: String? = null, |
|
|
|
sourceRegex: String? = null, |
|
|
|
sourceRegex: String? = null, |
|
|
@ -349,6 +352,9 @@ class AnalyzeUrl( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 访问网站,返回ByteArray |
|
|
|
|
|
|
|
*/ |
|
|
|
suspend fun getByteArray(): ByteArray { |
|
|
|
suspend fun getByteArray(): ByteArray { |
|
|
|
judgmentConcurrent() |
|
|
|
judgmentConcurrent() |
|
|
|
setCookie(source?.getStoreUrl()) |
|
|
|
setCookie(source?.getStoreUrl()) |
|
|
@ -369,6 +375,9 @@ class AnalyzeUrl( |
|
|
|
}.bytes() |
|
|
|
}.bytes() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 上传文件 |
|
|
|
|
|
|
|
*/ |
|
|
|
suspend fun upload(fileName: String, file: ByteArray, contentType: String): StrResponse { |
|
|
|
suspend fun upload(fileName: String, file: ByteArray, contentType: String): StrResponse { |
|
|
|
return getProxyClient(proxy).newCallStrResponse(retry) { |
|
|
|
return getProxyClient(proxy).newCallStrResponse(retry) { |
|
|
|
url(url) |
|
|
|
url(url) |
|
|
|