Browse Source

更新员工和部门

zhanglinxin 1 year ago
parent
commit
c5be1c5b41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/service/DingtalkService.php

+ 1 - 1
application/common/service/DingtalkService.php

@@ -159,7 +159,7 @@ class DingtalkService
     public static function get_tree($dept_id,&$tree = array()){
         $resp = self::department_listsub($dept_id);
         foreach ($resp as $value) {
-            $department_data[] = [
+            $tree[] = [
                 'dept_id' => $value->dept_id,
                 'name' => $value->name,
                 'parent_id' => $value->parent_id,