zarbox added 5
This commit is contained in:
@@ -56,6 +56,24 @@ class ConfigService
|
||||
return (int) ($value === false || $value === null || $value === '' ? $default : $value);
|
||||
}
|
||||
|
||||
/** اختلاف خرید نمایش (/api/price/last) — fee_single / buy_fee */
|
||||
public function displayBuySpreadRial(): float
|
||||
{
|
||||
$feeSingle = (float) $this->get('fee_single', 0);
|
||||
$buyFee = (float) $this->get('buy_fee', $feeSingle);
|
||||
|
||||
return $buyFee > 0 ? $buyFee : $feeSingle;
|
||||
}
|
||||
|
||||
/** اختلاف فروش نمایش — fee_single / sell_fee */
|
||||
public function displaySellSpreadRial(): float
|
||||
{
|
||||
$feeSingle = (float) $this->get('fee_single', 0);
|
||||
$sellFee = (float) $this->get('sell_fee', $feeSingle);
|
||||
|
||||
return $sellFee > 0 ? $sellFee : $feeSingle;
|
||||
}
|
||||
|
||||
/**
|
||||
* تنها منبع فعال قیمت — فقط یکی از: montzar | etehadie | taban_gohar | main_product
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user