zhangxiaoli 5 years ago
parent 69edde5fb3
commit 01cc62d1a8
  1. 4
      frontend/controllers/DatabaseController.php

@ -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();

Loading…
Cancel
Save