diff --git a/app/Services/ConfigService.php b/app/Services/ConfigService.php index 12a8c30..7a66f7f 100644 --- a/app/Services/ConfigService.php +++ b/app/Services/ConfigService.php @@ -128,11 +128,11 @@ class ConfigService $montzarProfit = (float) $this->get('montzar_diff', 0); $finalBuyDiff = $diffBuy + $montzarProfit; $finalSellDiff = $diffSell + $montzarProfit; - $openBuy = $montzarFlags['montzar_open_buy'] ?? $this->getBool('montzar_open_buy', true); - $openSell = $montzarFlags['montzar_open_sell'] ?? $this->getBool('montzar_open_sell', true); - $sell = $openSell ? (int) ceil($priceValue - $finalSellDiff) : 0; - $buy = $openBuy ? (int) ceil($priceValue + $finalBuyDiff) : 0; + // montzar_open_buy/sell وضعیت همکار است — نمایش قیمت را صفر نکن. + // باز/بسته بودن معامله = product.open_buy/open_sell در اپ محلی. + $sell = (int) ceil($priceValue - $finalSellDiff); + $buy = (int) ceil($priceValue + $finalBuyDiff); $priceLast = (int) ceil($priceValue + $finalBuyDiff); return compact('sell', 'buy', 'priceLast');