增加班主任设置

This commit is contained in:
win10 committed 2020-09-02 10:01:36 +08:00
1 parent 701436b09f
commit d2729c1bf5
28 files changed
+501 -1110

No files matched your search

+10
View File
@@ -63,6 +63,16 @@ class Admin extends BaseModel
}
// 查询管理员资料
public function searchOne($id)
{
$adminInfo = $this->where('id', $id)
->field('id, username, xingming, teacher_id')
->find();
return $adminInfo;
}
public function glGroup()
{
return $this->belongsToMany('AuthGroup', 'AuthGroupAccess', 'group_id', 'uid');