Przeglądaj źródła

修改我的部门问题

hefei 1 rok temu
rodzic
commit
4dfcd38ef1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/controller/api/user/User.php

+ 1 - 1
app/controller/api/user/User.php

@@ -1580,7 +1580,7 @@ class User extends BaseController
1580 1580
         $common_list = [];//小部门数据
1581 1581
         if(count($child_nums_Tree) && isset($child_nums_Tree[0]['children']) && count($child_nums_Tree[0]['children'])){
1582 1582
             //获取大部门的key
1583
-            $maxBalanceIndex = array_search(max(array_column($child_nums_Tree[0]['children'], 'total_pv')), array_column($child_nums_Tree, 'total_pv'));
1583
+            $maxBalanceIndex = array_search(max(array_column($child_nums_Tree[0]['children'], 'total_pv')), array_column($child_nums_Tree[0]['children'], 'total_pv'));
1584 1584
             foreach($child_nums_Tree[0]['children'] as $k=>$v){
1585 1585
                 if($k == $maxBalanceIndex){
1586 1586
                     $person_list[] = [