From 33e2daf40debda1a1276ab881d52427f0ef82e44 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Fri, 15 Nov 2019 10:57:53 +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 1971654..f96e584 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -505,6 +505,7 @@ class CarController extends BaseController $car_info = CarT::findOne(['id'=>$id]); if($car_info) { + $star_time = time(); $url = Yii::$app->params['userPanel']['search_car_url']; $token = Yii::$app->params['userPanel']['token']; $params = [ @@ -524,6 +525,9 @@ class CarController extends BaseController if($res->getStatusCode() == 200) { $obj = json_decode($res->getBody()); } + $time = time() - $star_time; + var_dump($obj); + echo $time; } $order_info = $car_info->getOrders()->orderBy('id DESC')->one(); if(!$order_info) {