qifengyuze
zhaocheng 5 years ago
parent 4062d11960
commit 895741a568
  1. 10
      frontend/controllers/DatabaseController.php

@ -2103,11 +2103,11 @@ class DatabaseController extends BaseController
throw new \Exception(print_r($d_info->getErrors(),true)); throw new \Exception(print_r($d_info->getErrors(),true));
} }
$car_info = $d_info->car; // $car_info = $d_info->car;
$car_info->op_user3 = $d_info->user->getShowName(); // $car_info->op_user3 = $d_info->user->getShowName();
if(!$car_info->save()) { // if(!$car_info->save()) {
throw new \Exception(print_r($car_info->getErrors(),true)); // throw new \Exception(print_r($car_info->getErrors(),true));
} // }
//添加保单 //添加保单
$order_row = new OrderT(); $order_row = new OrderT();

Loading…
Cancel
Save