|
|
@ -553,7 +553,7 @@ class CarController extends BaseController |
|
|
|
if($res->getStatusCode() == 200) { |
|
|
|
if($res->getStatusCode() == 200) { |
|
|
|
$obj = json_decode($res->getBody()); |
|
|
|
$obj = json_decode($res->getBody()); |
|
|
|
if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') { |
|
|
|
if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') { |
|
|
|
$car_user_info = CarUseT::find()->where(['name', $obj->data->UserInfo->CarUsedType])->one(); |
|
|
|
$car_user_info = CarUseT::find()->where(['name'=>$obj->data->UserInfo->CarUsedType])->one(); |
|
|
|
if($car_user_info) { |
|
|
|
if($car_user_info) { |
|
|
|
$obj->data->UserInfo->CarUsedType = $car_user_info->id; |
|
|
|
$obj->data->UserInfo->CarUsedType = $car_user_info->id; |
|
|
|
} |
|
|
|
} |
|
|
|