修复 时间获取问题
This commit is contained in:
parent
16153fcffa
commit
682ac79f9a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user