This commit is contained in:
巴掌 committed 2020-04-15 14:02:59 +08:00
1 parent 09622f12df
commit 812c21c5a0
2 files changed
+7 -5

No files matched your search

+5 -4
View File
@@ -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]; #获取年级