增加数据还原和下载

This commit is contained in:
巴掌 committed 2020-11-20 23:09:30 +08:00
1 parent b258bfa917
commit 912a2c8256
16 files changed
+335 -82

No files matched your search

+4 -2
View File
@@ -176,8 +176,10 @@
## 更详细信息请查阅官方手册
https://www.kancloud.cn/llblax/abcd/789222
交流群
![微信交流群](https://gitee.com/dlbz/shangma/raw/master/public/examples/42d89069b6fbebb309b2ad2678b27d0.png)
## 交流群
![QQ交流群](https://gitee.com/dlbz/shangma/raw/master/public/examples/42d89069b6fbebb309b2ad2678b27d0.png)
## 下一步工作
* [ ] 项目的问题修复和功能完善
+8
View File
@@ -167,3 +167,11 @@
$subject = $sbj->kaoshi();
return $subject;
}
function format_bytes($size, $delimiter = '') {
$units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
for ($i = 0; $size >= 1024 && $i < 5; $i++) $size /= 1024;
return round($size, 2) . $delimiter . $units[$i];
}
+12 -3
View File
@@ -77,7 +77,10 @@ class Index
// 管理员登录验证
public function admin($username, $password)
{
session(null);
session('onlineCategory', null);
session('user_id', null);
session('username', null);
session('password', null);
// 获取服务器密码
$userinfo = AD::where('username', $username)
->where('status', 1)
@@ -123,7 +126,10 @@ class Index
// 管理员登录验证
public function teacher($username, $password)
{
session(null);
session('onlineCategory', null);
session('user_id', null);
session('username', null);
session('password', null);
// 获取服务器密码
$tch = new \app\teacher\model\Teacher;
$userinfo = $tch::where('phone', $username)
@@ -169,7 +175,10 @@ class Index
// 管理员登录验证
public function student($username, $password)
{
session(null);
session('onlineCategory', null);
session('user_id', null);
session('username', null);
session('password', null);
// 获取服务器密码
$stu = new \app\student\model\Student;
$userinfo = $stu::where('shenfenzhenghao', $username)
Loaded 3 of 16 files, more files were not shown because too many files have changed in this diff. Show more