修复已知错误
This commit is contained in:
1 parent
e190c100b2
commit
626e63597e
5 files changed
+49
-53
No files matched your search
@@ -363,6 +363,44 @@ function strToarray($str)
|
||||
}
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 下载文件
|
||||
*
|
||||
* @access public
|
||||
* @param $url 文件地址
|
||||
* @param $newname 新文件名
|
||||
* @return array 返回类型
|
||||
*/
|
||||
function smDownload($url,$newname='')
|
||||
{
|
||||
$file = $url;
|
||||
|
||||
if(strlen($newname)==0)
|
||||
{
|
||||
$newname = filesize($file);
|
||||
}
|
||||
|
||||
|
||||
if (file_exists($file)) {
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Disposition: attachment; filename='.$newname);
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
header('Content-Length: ' . filesize($file));
|
||||
ob_clean();
|
||||
flush();
|
||||
readfile($file);
|
||||
exit;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body ">
|
||||
<blockquote class="layui-elem-quote">欢迎『<span class="x-red">{$list.group}</span>』:
|
||||
{$list['xingming']}!当前时间:<span id="current-time"></span>
|
||||
<blockquote class="layui-elem-quote">欢迎『<span class="x-red">{$list.group}</span>』
|
||||
<b>{$list['xingming']}</b> 当前时间:<span id="current-time"></span>
|
||||
<span id="show"></span>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
@@ -53,7 +53,7 @@ class Auth
|
||||
// 批量保存
|
||||
'saveall',
|
||||
// 下载成绩表、下载成绩统计表
|
||||
'dwchengjixlsx','dwbanjixlsx','dwnianjixlsx',
|
||||
'dwchengjixlsx','dwbanjixls','dwnianjixlsx',
|
||||
//保存考号、下载试卷标签、下载成绩采集表
|
||||
'updateset','biaoqianxls','dwcaiji',
|
||||
//课题结题图片上传和更新
|
||||
|
||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user