diff --git a/app/chengji/controller/Luru.php b/app/chengji/controller/Luru.php index 51748301..38e1a1e9 100644 --- a/app/chengji/controller/Luru.php +++ b/app/chengji/controller/Luru.php @@ -266,13 +266,14 @@ class Luru extends BaseController // 保存表格批量上传的成绩 public function saveAll() { - // set_time_limit(0); - // 获以电子表格存储位置 - $url = input('post.url'); + // 获取表单数据 + $list = $this->request->only([ + 'url' + ], 'POST'); // 读取表格数据 $excel = new \app\renshi\controller\Myexcel; - $cjinfo = $excel->readXls(public_path() . 'public\\uploads\\' . $url); + $cjinfo = $excel->readXls(public_path() . 'public\\uploads\\' . $list['url']); $kaoshi_id = $cjinfo[1][0]; #获取考号 $nianji = $cjinfo[1][1]; #获取年级 diff --git a/app/chengji/view/luru/biaolu.html b/app/chengji/view/luru/biaolu.html index 52baf613..b73dcddf 100644 --- a/app/chengji/view/luru/biaolu.html +++ b/app/chengji/view/luru/biaolu.html @@ -88,6 +88,7 @@ + {:token_meta()}