修复 价格获取问题

This commit is contained in:
iVampireSP.com 2022-11-20 21:22:34 +08:00
parent 5bc90b2b18
commit 44d2b71327
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -106,7 +106,7 @@ protected static function boot()
$model->hour_at = now()->hour; $model->hour_at = now()->hour;
if ($model->price !== null) { if ($model->price !== null) {
$model->price = $model->module->price; $model->price = round($model->price, 2);
} }
if ($model->managed_price !== null) { if ($model->managed_price !== null) {