订单金额
This commit is contained in:
parent
5172fad70e
commit
56302cc6f7
|
@ -35,6 +35,10 @@ class OrderController extends base
|
|||
->order('id','desc');
|
||||
|
||||
$orders = $query->paginate($request->get('limit',10));
|
||||
$orders->each(function($order) {
|
||||
$order->total_price = bcdiv($order->total_price, 100, 2);
|
||||
$order->actual_price = bcdiv($order->actual_price, 100, 2);
|
||||
});
|
||||
$list = $orders->hidden(['check_sn'])->append(['h5_os_status_name', 'h5_os_name' , 'can_book']);
|
||||
|
||||
return $this->success($list);
|
||||
|
|
Loading…
Reference in New Issue