...
|
...
|
@@ -146,7 +146,7 @@ class Cards extends Backend |
|
|
}
|
|
|
//加载文件
|
|
|
$insert = [];
|
|
|
try {
|
|
|
// try {
|
|
|
if (!$PHPExcel = $reader->load($filePath)) {
|
|
|
$this->error(__('Unknown data format'));
|
|
|
}
|
...
|
...
|
@@ -229,9 +229,9 @@ class Cards extends Backend |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception $exception) {
|
|
|
$this->error($exception->getMessage());
|
|
|
}
|
|
|
// } catch (Exception $exception) {
|
|
|
// $this->error($exception->getMessage());
|
|
|
// }
|
|
|
if (!$insert) {
|
|
|
$this->error(__('No rows were updated'));
|
|
|
}
|
...
|
...
|
|