修改下载文件方法、数据库结构

This commit is contained in:
win7 committed 2019-12-20 13:16:56 +08:00
1 parent 0433d4f004
commit 9e4c77e3df
13 files changed
+47 -44

No files matched your search

+2 -2
View File
@@ -529,8 +529,8 @@ class Student extends BaseController
// 下载表格模板
public function download()
{
$download = new \think\response\Download('uploads\student\student_template.xlsx');
return $download->name('student_template.xlsx');
$url = public_path().'public\\uploads\\student\\student_template.xlsx';
return smDownload($url,'学生名单模板.xlsx');
}