diff --git a/beike/Models/Order.php b/beike/Models/Order.php index bda22c90..c499762e 100644 --- a/beike/Models/Order.php +++ b/beike/Models/Order.php @@ -68,7 +68,9 @@ class Order extends Base public function getStatusFormatAttribute() { - return trans('order.' . $this->status); + $status_format = trans('order.' . $this->status); + $status_format = hook_filter('order.status_format', $status_format); + return $status_format; } public function getTotalFormatAttribute() diff --git a/themes/default/account/order.blade.php b/themes/default/account/order.blade.php index 9edc720a..cee30c2a 100644 --- a/themes/default/account/order.blade.php +++ b/themes/default/account/order.blade.php @@ -53,7 +53,7 @@ @if ($loop->first)