修改验证方式、更新datatables版本到15、添加管理员管理模块
This commit is contained in:
1 parent
2cb2202ed2
commit
0cb0ee8a2e
56 files changed
+19408
-53
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
class Admin extends Model
|
||||
{
|
||||
// 密码验证
|
||||
public function check( $username ,$password )
|
||||
{
|
||||
// 验证用户名与密码是否匹配
|
||||
$list = $this
|
||||
->where('username',$username)
|
||||
->where('password',$password)
|
||||
->value('id');
|
||||
|
||||
return $list;
|
||||
}
|
||||
|
||||
public function miyao($username)
|
||||
{
|
||||
// 查询数据
|
||||
$miyao = $this
|
||||
->where('username',$username)
|
||||
->value('miyao');
|
||||
|
||||
// 返回数据
|
||||
return $miyao;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user