From a97c678ce0ea684c8914551c52d481d028628473 Mon Sep 17 00:00:00 2001 From: gholak tala Date: Tue, 10 Mar 2026 12:32:55 +0000 Subject: [PATCH] NASER comment unused price sources --- app/Http/Controllers/Site/ReportController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Site/ReportController.php b/app/Http/Controllers/Site/ReportController.php index 137b916..44ccd50 100644 --- a/app/Http/Controllers/Site/ReportController.php +++ b/app/Http/Controllers/Site/ReportController.php @@ -183,10 +183,10 @@ class ReportController extends Controller // } $pr_product = Product::find($main_product_id); - try { - $taban_gohar = Http::timeout(2)->get('https://tabangohar.com/GheymatKhan/prices_in_table.html')->json(); - $tgn = (int)$taban_gohar['c']*10; - }catch (\Exception $e){$tgn = 0;} +// try { +// $taban_gohar = Http::timeout(2)->get('https://tabangohar.com/GheymatKhan/prices_in_table.html')->json(); +// $tgn = (int)$taban_gohar['c']*10; +// }catch (\Exception $e){$tgn = 0;} if($this->Config('goldir_price') == 'true') { $priceValue = (int)$goldir_price; @@ -227,7 +227,7 @@ class ReportController extends Controller 'price_last' => $price->price + $difference, 'price' => $priceValue, 'main_product' => $pr_product['price'] + $pr_product['price_profit'], - 'taban_gohar' => $tgn, + 'taban_gohar' => $tgn ?? 0, 'goldir' => $goldir_price ?? 0 ]; } else {