weizong song 5 years ago
parent 3c47fd5c10
commit e385a97065

@ -168,6 +168,9 @@ class OrdersController extends CommonController
$data = $model->orderBy("id", "desc")->paginate($page_size);
foreach ($data as $order) {
$order = $order->refreshTotal();
if (!$order->customer) {
continue;
}
$order->balance = $order->customer->balance;
}
return response()->json($data->toArray());

Loading…
Cancel
Save