From 682ac79f9abe14ede1a758a45dc5cb997db537d3 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 23 Nov 2022 15:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Host.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Models/Host.php b/app/Models/Host.php index 78a1221..b0615a7 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -98,7 +98,7 @@ protected static function boot() static::creating(function ($model) { $model->hour_at = now()->hour; - $model->minute_at = now()->minute_at; + $model->minute_at = now()->minute; if ($model->price !== null) { $model->price = round($model->price, 2); @@ -182,7 +182,8 @@ public function module(): BelongsToAlias // } - public function getPrice() { + public function getPrice(): float + { return $this->managed_price ?? $this->price; }