fix change price url
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user