编辑增加投保人被保险人字段编辑

master
zcstatham 2 years ago
parent 117ced8ffc
commit a5b9279a05
  1. 5
      app/controller/Index.php

@ -189,6 +189,11 @@ class Index extends BaseController
$car_info->car_phone = $data['car_phone'] ?? $car_info->car_phone; $car_info->car_phone = $data['car_phone'] ?? $car_info->car_phone;
$car_info->id_man = $data['id_man'] ?? $car_info->id_man; $car_info->id_man = $data['id_man'] ?? $car_info->id_man;
$car_info->id_number = $data['id_number'] ?? $car_info->id_number; $car_info->id_number = $data['id_number'] ?? $car_info->id_number;
$car_info->id_phone = $data['id_phone'] ?? $car_info->id_phone;
$car_info->insured_man = $data['insured_man'] ?? $car_info->insured_man;
$car_info->insured_number = $data['insured_number'] ?? $car_info->insured_number;
$car_info->insured_phone = $data['insured_phone'] ?? $car_info->insured_phone;
$car_info->update_timestamp = date('Y-m-d H:i:s'); $car_info->update_timestamp = date('Y-m-d H:i:s');
if($car_info->save()){ if($car_info->save()){
return json($this->json_data); return json($this->json_data);

Loading…
Cancel
Save