This commit is contained in:
salam committed 2026-10-03 10:40:43 +02:00
1 parent bbda7b478f
commit d0e17cdc03
4 files changed
+87 -10

No files matched your search

+4 -4
View File
@@ -17,7 +17,7 @@ class CloudflareSolverService
{
/**
* set in .env
* FLARESOLVERR_IP_DOCKER="http://192.168.178.187:8191/v1"
* FLARESOLVERR_IP_DOCKER="http://192.168.178.199:8191/v1"
*/
$this->solverUrl = env('FLARESOLVERR_IP_DOCKER', 'http://192.168.178.187:8191/v1');
@@ -38,9 +38,9 @@ class CloudflareSolverService
$data = $response->json();
$tmp = json_encode($data);
// if (strpos($tmp, "reason") !== false && strpos($tmp, 403) !== false)
// dd($data);
if (strpos($data['solution']['response'], '"code": 403, "reason": "challenge"') !== false) {
dd($data);
}
if (isset($data['status']) && $data['status'] === 'ok') {
$htmlContent = $data['solution']['response'];