Explorar el Código

修改我的部门问题

hefei hace 1 año
padre
commit
4dfcd38ef1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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[] = [