From 812c21c5a0ee2b8a5bec262d2afc0ce20ca74cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Wed, 15 Apr 2020 14:02:59 +0800 Subject: [PATCH] 0 --- app/chengji/controller/Luru.php | 9 +++++---- app/chengji/view/luru/biaolu.html | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) 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()}
@@ -157,7 +158,7 @@ layui.use(['form','upload','cjgl'], function(){ data:{ "url":url }, - async:false, + // async:true, success:function(result){ if(result.val == 1) {