增加数据还原和下载
This commit is contained in:
1 parent
b258bfa917
commit
912a2c8256
16 files changed
+335
-82
No files matched your search
@@ -176,8 +176,10 @@
|
||||
|
||||
## 更详细信息请查阅官方手册
|
||||
https://www.kancloud.cn/llblax/abcd/789222
|
||||
交流群
|
||||

|
||||
|
||||
|
||||
## 交流群
|
||||

|
||||
|
||||
## 下一步工作
|
||||
* [ ] 项目的问题修复和功能完善
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
@@ -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
Reference in new issue
Block a user