wip nas
This commit is contained in:
commit
f6a7ebf737
4 files changed
+87
-10
No files matched your search
@@ -17,7 +17,7 @@ class CloudflareSolverService
|
||||
{
|
||||
/**
|
||||
* set in .env
|
||||
* FLARESOLVERR_IP_DOCKER="http://flaresolverr:8191/v1"
|
||||
* FLARESOLVERR_IP_DOCKER="http://192.168.178.187:8191/v1"
|
||||
*/
|
||||
$this->solverUrl = env('FLARESOLVERR_IP_DOCKER', 'http://flaresolverr:8191/v1');
|
||||
|
||||
@@ -42,9 +42,9 @@ class CloudflareSolverService
|
||||
dd($data);
|
||||
}
|
||||
|
||||
$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'];
|
||||
|
||||
@@ -30,7 +30,7 @@ trait GrapperEvent
|
||||
Notice::note($url, 'b');
|
||||
}
|
||||
|
||||
$this->sleep(1);
|
||||
$this->sleep(2);
|
||||
|
||||
$cloudflareService = new CloudflareSolverService;
|
||||
|
||||
|
||||
@@ -231,12 +231,12 @@ trait GrappingHelper
|
||||
|
||||
if (! $this->force && $has) {
|
||||
if ($this->debug) {
|
||||
Notice::note("tournaments $day for " . strtoupper($slug) . ' allready grapped', 'bb');
|
||||
Notice::note("$day tournaments allready grapped", 'br');
|
||||
}
|
||||
} else {
|
||||
|
||||
if ($this->debug) {
|
||||
Notice::note("grappig tournaments for $day", 'bb');
|
||||
Notice::note("$day tournaments loaded", 'bb');
|
||||
}
|
||||
|
||||
$page = 1;
|
||||
@@ -363,9 +363,6 @@ trait GrappingHelper
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($this->debug) {
|
||||
Notice::note('days tournament done', 'g');
|
||||
}
|
||||
}
|
||||
|
||||
protected function get_tree(string $dir, &$results = [])
|
||||
|
||||
Reference in new issue
Block a user