导出上传文件字段调试

master
zcstatham 2 years ago
parent 540a2fed0e
commit bf4cb311de
  1. 3
      .gitignore
  2. 2
      extend/service/CarInfoHandle.php

3
.gitignore vendored

@ -5,5 +5,6 @@
/public/storage /public/storage
/public/uploads /public/uploads
/runtime /runtime
/runtime/*
*.log *.log
.env .env

@ -652,7 +652,7 @@ class CarInfoHandle
} else { } else {
$bhxFields = ['car_no', 'car_frame_no']; $bhxFields = ['car_no', 'car_frame_no'];
} }
$bmcFields = ['register_date', 'car_no', 'car_frame_no', 'engine_no', 'factory_model', 'car_year', 'displacement', 'car_man', 'car_number', 'car_phone', 'purchase_price', 'id_man', 'id_number', 'insured_man', 'insured_number', 'id_phone', 'company', 'insurer1_date', 'insurer2_date', 'insurer_type', 'linkman', 'linkphone', 'linkman', 'linkphone', 'linkman', 'linkphone']; $bmcFields = ['register_date', 'car_no', 'car_frame_no', 'engine_no', 'factory_model', 'car_year', 'displacement', 'car_man', 'car_number', 'car_phone', 'purchase_price', 'id_man', 'id_number', 'id_phone', 'insured_man', 'insured_number', 'insured_phone', 'company', 'insurer1_date', 'insurer2_date', 'insurer_type', 'linkman', 'linkphone', 'linkman', 'linkphone', 'linkman', 'linkphone'];
$titles = in_array($export_type, ['bmc','failed_bmc','none_bmc']) ? $bmcTitles : ($export_type == 'repeat' ? $orgTitles : $bhxTitles); $titles = in_array($export_type, ['bmc','failed_bmc','none_bmc']) ? $bmcTitles : ($export_type == 'repeat' ? $orgTitles : $bhxTitles);
$fields = in_array($export_type, ['bmc','failed_bmc','none_bmc']) ? $bmcFields : ($export_type == 'repeat' ? $orgFields : $bhxFields); $fields = in_array($export_type, ['bmc','failed_bmc','none_bmc']) ? $bmcFields : ($export_type == 'repeat' ? $orgFields : $bhxFields);
return [$titles, $fields]; return [$titles, $fields];

Loading…
Cancel
Save