From b7125c97edec88862fa96ec800b76b6ba63f919a Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Fri, 15 Nov 2019 10:32:59 +0800 Subject: [PATCH] test1 --- frontend/controllers/CarController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/controllers/CarController.php b/frontend/controllers/CarController.php index 4143bb9..8a0091f 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -531,10 +531,14 @@ class CarController extends BaseController $order_info->link_phone = $car_info->phone; $order_info->save(); } + $linkMan_items = $car_info->getLinkmen() + ->orderBy('created_at desc') + ->all(); return $this->render('info',[ 'user_id' => $this->my->id, 'car_info' => $car_info, + 'link_men' => $linkMan_items, 'order_info' => $order_info, ]); }