修改下载文件方法、数据库结构
This commit is contained in:
1 parent
0433d4f004
commit
9e4c77e3df
13 files changed
+47
-44
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user