作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

cost

@@ -63,7 +63,7 @@ class AdminEquipmentController extends AdminBaseController{ @@ -63,7 +63,7 @@ class AdminEquipmentController extends AdminBaseController{
63 63
64 public function batch_addPost(){ 64 public function batch_addPost(){
65 //上传excel文件 65 //上传excel文件
66 - $file = $this->request->file('file'); 66 + $file = $this->request->file('myfile');
67 //移到/public/uploads/excel/下 67 //移到/public/uploads/excel/下
68 $info = $file->move(ROOT_PATH.'public'.DS.'upload'.DS.'excel'); 68 $info = $file->move(ROOT_PATH.'public'.DS.'upload'.DS.'excel');
69 //上传文件成功 69 //上传文件成功