fix change price url

This commit is contained in:
gholak tala
2026-05-13 06:55:42 +00:00
parent 89106ce428
commit b9a7a5b780
2 changed files with 2 additions and 1 deletions
@@ -128,7 +128,7 @@ class ProductController extends SuperController
// $RPrices = Http::get('https://pricing.liman.gold/pricingApi', [])->json();
// $RPrices = Http::get('https://pricing.liman.gold/pricingApi', [])->json();
// $RPrices =Http::timeout(40)->get('http://212.23.201.173:8381/price_list', [])->json();
$RPrices = Http::timeout(40)->get('http://37.32.11.142:4949/api/free', [])->json();
$RPrices = Http::timeout(40)->get('http://109.122.246.48:4949/api/free', [])->json();
// try{
// $cooper =Http::timeout(40)->get('https://www.livedata.ir/main/static/p.json', [])->json();
@@ -280,6 +280,7 @@ class ReportController extends Controller
}
$price = Price::orderBy('id', 'desc')->first();
if ($price) {
$priceValue=$price->price;
if($this->Config('goldir_price') == 'true' && $goldir_price !==0){
$goldir_profit = Cnt::where('key', 'goldir_diff')->first()['value'];
$difference = $goldir_profit;