NASER fix revert
This commit is contained in:
@@ -19,6 +19,7 @@ use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Morilog\Jalali\Jalalian;
|
||||
use App\Http\Controllers\Admin\ProductController;
|
||||
|
||||
class ReportController extends Controller
|
||||
{
|
||||
@@ -131,8 +132,12 @@ class ReportController extends Controller
|
||||
// } catch (\Exception $e) {$tala_ir = 0;}
|
||||
|
||||
$main_product_id = Cnt::where('key', 'main_product')->first()['value'];
|
||||
$pr_product = Product::find($main_product_id);
|
||||
$ref = Http::timeout(40)->get('https://garoosigholaktala.ir/server/refPricer', [])->json();
|
||||
$refpricer = new ProductController();
|
||||
if ($refpricer->getPrice()) {
|
||||
$ref = true;
|
||||
} else {
|
||||
$ref = false;
|
||||
}
|
||||
|
||||
try {
|
||||
$taban_gohar = Http::timeout(2)->get('https://tabangohar.com/GheymatKhan/prices_in_table.html')->json();
|
||||
|
||||
Reference in New Issue
Block a user