From 66213b653be46a65091e93cab3eafc39ce73ea4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Tue, 28 Dec 2021 13:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/model/AuthGroupAccess.php | 9 +++------ app/index/view/index/index.html | 2 +- app/login/controller/Index.php | 2 +- app/login/controller/YanZheng.php | 4 ++-- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/app/admin/model/AuthGroupAccess.php b/app/admin/model/AuthGroupAccess.php index e863f4ec..bc7b6a31 100755 --- a/app/admin/model/AuthGroupAccess.php +++ b/app/admin/model/AuthGroupAccess.php @@ -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'); } -} \ No newline at end of file +} diff --git a/app/index/view/index/index.html b/app/index/view/index/index.html index f88b7421..f5b2d378 100755 --- a/app/index/view/index/index.html +++ b/app/index/view/index/index.html @@ -21,7 +21,7 @@