From 86d83c9191c657e11eedbb52049b21b924617e55 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 5 Nov 2019 19:46:01 +0800 Subject: [PATCH] test3 --- frontend/controllers/SystemController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/controllers/SystemController.php b/frontend/controllers/SystemController.php index 97a9280..e50c363 100644 --- a/frontend/controllers/SystemController.php +++ b/frontend/controllers/SystemController.php @@ -217,6 +217,13 @@ class SystemController extends \yii\web\Controller $items = OrderT::find() ->where('status_id=10') ->all(); + foreach($items as $item) { + $car_info = $item->car; + if(!$car_info) { + echo 'error'; + break; + } + } return count($items); } }