|
|
|
@ -741,6 +741,7 @@ class CarController extends BaseController |
|
|
|
|
]); |
|
|
|
|
if($res->getStatusCode() == 200) { |
|
|
|
|
$obj = json_decode($res->getBody()); |
|
|
|
|
if($obj->code == 200) { |
|
|
|
|
if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') { |
|
|
|
|
$car_user_info = CarUseT::find()->where(['name'=>$obj->data->UserInfo->CarUsedType])->one(); |
|
|
|
|
if($car_user_info) { |
|
|
|
@ -748,6 +749,9 @@ class CarController extends BaseController |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return MyLib::ok3($obj->data); |
|
|
|
|
} else { |
|
|
|
|
return MyLib::error3($obj.msg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return MyLib::error3($res->getBody()); |
|
|
|
|
} |
|
|
|
@ -774,6 +778,7 @@ class CarController extends BaseController |
|
|
|
|
// exit; |
|
|
|
|
if($res->getStatusCode() == 200) { |
|
|
|
|
$obj = json_decode($res->getBody()); |
|
|
|
|
if($obj->code == 200) { |
|
|
|
|
if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') { |
|
|
|
|
$car_user_info = CarUseT::find()->where(['name'=>$obj->data->UserInfo->CarUsedType])->one(); |
|
|
|
|
if($car_user_info) { |
|
|
|
@ -781,6 +786,9 @@ class CarController extends BaseController |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return MyLib::ok3($obj->data); |
|
|
|
|
} else { |
|
|
|
|
return MyLib::error3($obj->msg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return MyLib::error3($res->getBody()); |
|
|
|
|
} |
|
|
|
|