曾超新 5 years ago
parent 8621e73700
commit 451636bb31
  1. 1
      frontend/controllers/CarController.php

@ -759,6 +759,7 @@ class CarController extends BaseController
'http_errors' => false, 'http_errors' => false,
]); ]);
if($res->getStatusCode() == 200) { if($res->getStatusCode() == 200) {
var_dump($res->getBody());
$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();

Loading…
Cancel
Save