更新目录结构
This commit is contained in:
@@ -11,7 +11,7 @@ namespace app\controller\auth;
|
||||
use think\facade\Request;
|
||||
use app\model\auth\Departments;
|
||||
use app\services\auth\DepartmentService;
|
||||
use sent\tree\Tree;
|
||||
use Xin\Support\Arr;
|
||||
use app\controller\Base;
|
||||
|
||||
class Department extends Base {
|
||||
@@ -35,7 +35,7 @@ class Department extends Base {
|
||||
}
|
||||
}
|
||||
}
|
||||
$tree = (new Tree())->listToTree($list, 'id', 'parent_id', 'children', $root);
|
||||
$tree = Arr::tree($list, null, 0, ['id'=>'id', 'parent' => 'parent_id', 'child' => 'children']);
|
||||
if(empty($tree)){
|
||||
$this->data['data'] = $list;
|
||||
}else{
|
||||
|
||||
@@ -11,9 +11,6 @@ namespace app\controller\auth;
|
||||
use app\controller\Base;
|
||||
use app\services\auth\AuthService;
|
||||
use app\services\SocialiteService;
|
||||
use app\model\Member;
|
||||
use app\model\auth\Users;
|
||||
use app\model\auth\RolesAccess;
|
||||
|
||||
class Index extends Base{
|
||||
|
||||
@@ -28,21 +25,6 @@ class Index extends Base{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function member(){
|
||||
// $output = $this->app->console->call('migrate:run');
|
||||
// return $output->fetch();
|
||||
// $map = [];
|
||||
// $member = Member::where($map)->select();
|
||||
// $save = [];
|
||||
// foreach($member as $item){
|
||||
// $user = Users::where('username', '=', $item->username)->findOrEmpty();
|
||||
// if($user->isEmpty()){
|
||||
// $save[] = ['uid' => $item['uid'], 'username' => $item['username'], 'password' => '123456', 'nickname' => $item['nickname'], 'email' => $item['email'], 'department_id' => $item['department']];
|
||||
// }
|
||||
// }
|
||||
// (new Users())->saveAll($save);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 第三方账号登录
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user