Sync
This commit is contained in:
@@ -44,8 +44,7 @@ public static function handle(int $url_to_crawl_id)
|
||||
|
||||
if ($response->successful()) {
|
||||
$raw_html = $response->body();
|
||||
if ($enable_proxy)
|
||||
{
|
||||
if ($enable_proxy) {
|
||||
$cost = calculate_smartproxy_cost(round(strlen($raw_html) / 1024, 2), 'rotating_global');
|
||||
|
||||
$service_cost_usage = new ServiceCostUsage;
|
||||
@@ -57,7 +56,6 @@ public static function handle(int $url_to_crawl_id)
|
||||
$service_cost_usage->save();
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
$raw_html = null;
|
||||
$response->throw();
|
||||
|
||||
Reference in New Issue
Block a user