如何防止maatwebsite/excel在导入XLX或XLS时更改数据结构
我正在将xlxs文件导入集合。但是,单元格中的值是变化的,例如如何防止maatwebsite/excel在导入XLX或XLS时更改数据结构,excel,laravel,lumen,maatwebsite-excel,Excel,Laravel,Lumen,Maatwebsite Excel,我正在将xlxs文件导入集合。但是,单元格中的值是变化的,例如 3614226905352更改为3.614226905369E12 20至20.0 ///Controller $import = new ImportFilterService(); Excel::import($import , $file->getRealPath()); 500至500.0 ///Controller $import = new ImportFilterService(); Excel
3614226905352
更改为3.614226905369E12
20
至20.0
///Controller
$import = new ImportFilterService();
Excel::import($import , $file->getRealPath());
500
至500.0
///Controller
$import = new ImportFilterService();
Excel::import($import , $file->getRealPath());
$90.00
至90.0
///Controller
$import = new ImportFilterService();
Excel::import($import , $file->getRealPath());
我已尝试使用CustomValueBinder实现
public function bindValue(Cell $cell, $value){
}
但是,在调用bindValue
方法时,$值已经更改
如何确保xlxs文件或xls文件保持原始单元格值
注意:我在使用Rap2hpoutre FastExcel
时没有此问题。但是,此库不适用于xls