* @created 2022-07-27 17:49:15 * @modified 2022-07-27 17:49:15 */ namespace Beike\Shop\Services\TotalServices; use Beike\Shop\Services\TotalService; class OrderTotalService { public static function getTotal(TotalService $totalService) { $amount = $totalService->amount; return [ 'code' => 'order_total', 'title' => '应付总金额', 'amount' => $amount, 'amount_format' => currency_format($amount) ]; } }