|
|
@ -397,11 +397,11 @@ class DatabaseController extends BaseController |
|
|
|
// continue; |
|
|
|
// continue; |
|
|
|
// } |
|
|
|
// } |
|
|
|
$car_info->location = 2; |
|
|
|
$car_info->location = 2; |
|
|
|
$car_info->save(); |
|
|
|
$car_info->save(false); |
|
|
|
|
|
|
|
|
|
|
|
$b_info = CarBT::findOne(['id'=>$car_info->id]); |
|
|
|
$b_info = CarBT::findOne(['id'=>$car_info->id]); |
|
|
|
if(!$b_info) { |
|
|
|
if(!$b_info) { |
|
|
|
$b_info = new CarBT(); |
|
|
|
$b_info = new CarBT(false); |
|
|
|
$b_info->id = $car_info->id; |
|
|
|
$b_info->id = $car_info->id; |
|
|
|
$b_info->user_id = 0; |
|
|
|
$b_info->user_id = 0; |
|
|
|
$b_info->save(); |
|
|
|
$b_info->save(); |
|
|
|