修改权限表

This commit is contained in:
巴掌 committed 2021-12-28 13:28:04 +08:00
1 parent d1ded5d81c
commit 66213b653b
4 files changed
+7 -10

No files matched your search

+3 -6
View File
@@ -2,11 +2,11 @@
namespace app\admin\model;
// 引用用户数据模型
// 引用用户数据模型
use app\BaseModel;
use think\model\Pivot;
class AuthGroupAccess extends Pivot
class AuthGroupAccess extends BaseModel
{
// 设置字段信息
protected $schema = [
@@ -18,9 +18,6 @@ class AuthGroupAccess extends Pivot
,'delete_time' => 'int'
];
// 开启软删除
use \think\model\concern\SoftDelete;
protected $deleteTime = 'delete_time';
// 根据角色ID查询用户
public function search($srcfrom)
@@ -90,4 +87,4 @@ class AuthGroupAccess extends Pivot
{
return $this->belongsTo(Admin::class, 'uid', 'id');
}
}
}
+1 -1
View File
@@ -21,7 +21,7 @@
<![endif]-->
<script>
// 是否开启刷新记忆tab功能
// var is_remember = false;
var is_remember = false;
</script>
<!-- // 百度统计代码 -->
<script>
+1 -1
View File
@@ -67,7 +67,7 @@ class Index extends BaseController
{
// 获取服务器密码
$admin = new \app\admin\model\Admin;
$userinfo = $admin::where('username', $list['username'])
$userinfo = $admin::where('username|phone', $list['username'])
->where('status', 1)
->field('id, lastip, username, ip, denglucishu, lasttime, thistime, password')
->find();
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff. Show more