WIN-2308041133\Administrator 2 weeks ago
parent
commit
c32624f66a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/system/SystemUserTask.php

+ 2 - 2
app/models/system/SystemUserTask.php

@@ -211,7 +211,7 @@ class SystemUserTask extends BaseModel
         }
         if (!empty($directSubordinateUids)) {
 //            $directSubordinateUids = array_unique($directSubordinateUids);
-//            $directSubordinateUids = array_values($directSubordinateUids);
+            $directSubordinateUids = array_values($directSubordinateUids);
             @file_put_contents('quanju.txt', json_encode($directSubordinateUids) . "-直属下级uid\r\n", 8);
             foreach ($directSubordinateUids as $value){
                 @file_put_contents('quanju.txt', $value . "-这谁的uid啊\r\n", 8);
@@ -219,7 +219,7 @@ class SystemUserTask extends BaseModel
                 @file_put_contents('quanju.txt', json_encode($teamUids2) . "-你直属下级呢\r\n", 8);
                 if (!empty($teamUids2)) {
 //                    $teamUids2=array_unique($teamUids2);
-//                    $teamUids2=array_values($teamUids2);
+                    $teamUids2=array_values($teamUids2);
                     @file_put_contents('quanju.txt', json_encode($teamUids2) . "-各直属下级团队uid\r\n", 8);
                     $personal_achievement = User::whereIn('uid', $teamUids2)
                         ->sum('achievement');