This commit is contained in:
2026-06-14 22:00:21 +03:30
parent 0c4cbd7c12
commit b021acde56
7 changed files with 119 additions and 15 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ class ZaarboxPriceService
$liquidGoldPrice = app(ProductDisplayPriceService::class)->resolveAppBasePrice();
$p = Product::find($product->id);
if ($p && $liquidGoldPrice > 0) {
$show = ($currentTime >= $product->auto_open_at && $currentTime <= $product->auto_close_at);
$show = app(ConfigService::class)->isProductWithinTradingHours($product);
$p->amount = $row['price'] / $liquidGoldPrice;
$p->show = $show;
$p->save();