改进 返回内容
This commit is contained in:
parent
ae32ddedcd
commit
498030fcf7
@ -54,6 +54,11 @@ protected static function boot()
|
||||
});
|
||||
|
||||
static::created(function (self $model) {
|
||||
$model->load('module');
|
||||
|
||||
// model price 使用 bcmul 保留两位小数
|
||||
$model->price = bcmul($model->price, 1, 2);
|
||||
|
||||
$model->user->notify(new WebNotification($model, 'hosts.created'));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user