曾超新 5 years ago
parent 6a7f36cd94
commit 6cffc4c733
  1. 6
      frontend/controllers/CarController.php

@ -552,10 +552,10 @@ 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->CarUsedType != '') { if($obj->data && $obj->data->UserInfo && $obj->data->UserInfo->CarUsedType != '') {
$car_user_info = CarUseT::where('name', $obj->data->CarUsedType)->first(); $car_user_info = CarUseT::where('name', $obj->data->UserInfo->CarUsedType)->first();
if($car_user_info) { if($car_user_info) {
$obj->data->CarUsedType = $car_user_info->id; $obj->data->UserInfo->CarUsedType = $car_user_info->id;
} }
} }
return MyLib::ok3($obj->data); return MyLib::ok3($obj->data);

Loading…
Cancel
Save