public function setauth($id,$t,$poptype=''){
$this->pageinit['R'] = $t;
$this->assign('pageinit',$this->pageinit);
$user = $this->model::get($id);
$this->assign('user', $user);
$sys_type = model('index/Codedefine')->get_codeid('T002',request()->module());
$has_authpoint = get_authpoint('',$id);
$authtree['authpoint'] = get_AuthTree('',$sys_type,$has_authpoint);
$this->assign('AuthTreeTab', $authtree);
$auth_list = $this->fetch('index/authlist');
$this->assign('authlist', $auth_list);
return $this->fetch();
} 最佳答案