正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -131,6 +131,8 @@ class InquiryInfoController extends BaseController | @@ -131,6 +131,8 @@ class InquiryInfoController extends BaseController | ||
| 131 | ]); | 131 | ]); |
| 132 | if ($this->request->hasFile('file')) { | 132 | if ($this->request->hasFile('file')) { |
| 133 | $path = $this->request->file('file')->getRealPath(); | 133 | $path = $this->request->file('file')->getRealPath(); |
| 134 | + var_dump($path); | ||
| 135 | + die(); | ||
| 134 | $spreadsheet = IOFactory::load($path); | 136 | $spreadsheet = IOFactory::load($path); |
| 135 | $worksheet = $spreadsheet->getActiveSheet(); | 137 | $worksheet = $spreadsheet->getActiveSheet(); |
| 136 | $rows = $worksheet->toArray(); | 138 | $rows = $worksheet->toArray(); |
-
请 注册 或 登录 后发表评论