diff --git a/frontend/controllers/CarController.php b/frontend/controllers/CarController.php index f24b0f2..611b598 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -553,7 +553,7 @@ class CarController extends BaseController if($res->getStatusCode() == 200) { $obj = json_decode($res->getBody()); if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') { - $car_user_info = CarUseT::where('name', $obj->data->UserInfo->CarUsedType)->first(); + $car_user_info = CarUseT::find()->where(['name', $obj->data->UserInfo->CarUsedType])->one(); if($car_user_info) { $obj->data->UserInfo->CarUsedType = $car_user_info->id; }