移动database

This commit is contained in:
win7 committed 2019-12-04 15:33:21 +08:00
1 parent 361cfd0e2e
commit f6f88adb59
38 files changed
+1907 -13

No files matched your search

+6 -1
View File
@@ -9,11 +9,13 @@ use think\Validate;
use app\middleware\UserLogin;
use app\middleware\Auth;
/**
* 控制器基础类
*/
abstract class BaseController
{
/**
* Request实例
* @var \think\Request
@@ -57,7 +59,9 @@ abstract class BaseController
// 初始化
protected function initialize()
{}
{
}
/**
* 验证数据
@@ -96,4 +100,5 @@ abstract class BaseController
return $v->failException(true)->check($data);
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ use think\facade\Route;
//系统设置路由
Route::resource('chengji','Chengji/Index');
Route::resource('/','chengji/Index');
// 扫码录入成绩
+2 -2
View File
@@ -5,11 +5,10 @@ namespace app\index\controller;
use app\BaseController;
// 引用与此控制器同名的数据模型
use app\system\model\SystemBase as sysbasemod;
// 引用视图功能类
// 引用视图类
use think\facade\View;
class Index extends BaseController
{
@@ -81,6 +80,7 @@ class Index extends BaseController
])
->order(['paixu'])
->select()->toArray();
// return view('list', $list);
// 模版赋值
Loaded 3 of 38 files, more files were not shown because too many files have changed in this diff. Show more