NASER fix revert

This commit is contained in:
2026-02-10 12:29:57 +03:30
parent 06edd9e05d
commit 129395accd
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class Controller extends BaseController
"sms" => [
'user_name' => 'ysms1362',
'password' => '1234@Abcgh',
'password' => 'tL4w0PfNy2()',
'sender' => '3000164545',
],
];
@@ -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();