wip
This commit is contained in:
1 parent
bbda7b478f
commit
d0e17cdc03
4 files changed
+87
-10
No files matched your search
@@ -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'];
|
||||
|
||||
Reference in new issue
Block a user