重新整理代码teach、phinx
This commit is contained in:
1 parent
dd1644a3c4
commit
c033a24084
80 files changed
+2666
-1248
No files matched your search
@@ -102,6 +102,7 @@ abstract class BaseController
|
||||
return $v->failException(true)->check($data);
|
||||
}
|
||||
|
||||
|
||||
use \liliuwei\think\Jump;
|
||||
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
namespace app;
|
||||
|
||||
// 引用模型类
|
||||
use think\Model;
|
||||
// 引用软删除类
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
class Base extends Model
|
||||
class BaseModel extends Model
|
||||
{
|
||||
|
||||
// 开启全局自动时间戳
|
||||
@@ -3,9 +3,9 @@
|
||||
namespace app\admin\model;
|
||||
|
||||
// 引用用户数据模型
|
||||
use app\common\model\Base;
|
||||
use app\BaseModel;
|
||||
|
||||
class Admin extends Base
|
||||
class Admin extends BaseModel
|
||||
{
|
||||
// 查询所有角色
|
||||
public function search($src)
|
||||
@@ -49,7 +49,7 @@ class Admin extends Base
|
||||
// 获取密码
|
||||
public function password($username)
|
||||
{
|
||||
// 查询数据
|
||||
// 查询数据
|
||||
$pasW = $this
|
||||
->where('username',$username)
|
||||
->value('password');
|
||||
|
||||
Loaded 3 of 80 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user