fix up down price

This commit is contained in:
2026-06-02 11:18:05 +03:30
parent cf466c616c
commit 3e6c4b588d
3 changed files with 28 additions and 18 deletions
+3 -1
View File
@@ -34,10 +34,12 @@ class ConfigService
$priceInt = (int) round($price);
$today = now()->toDateString();
$extremeDate = $this->Config('price_extreme_date');
if (!$upSetting->updated_at || $upSetting->updated_at->toDateString() !== $today) {
if ($extremeDate !== $today) {
$this->UpdateConfig('up_price', $priceInt);
$this->UpdateConfig('down_price', $priceInt);
$this->UpdateConfig('price_extreme_date', $today);
return;
}