WIN-2308041133\Administrator hace 2 semanas
padre
commit
0ee2f13957
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/models/system/SystemUserTask.php

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

@@ -215,10 +215,11 @@ class SystemUserTask extends BaseModel
             @file_put_contents('quanju.txt', json_encode($directSubordinateUids) . "-直属下级uid\r\n", 8);
             foreach ($directSubordinateUids as $key => $value){
                 $teamUids = UserController::getAllTeamMembers($value);  //获取直推下级的团队所有成员
-                @file_put_contents('quanju.txt', json_encode($teamUids) . "-各直属下级团队uid\r\n", 8);
+
                 if (!empty($teamUids)) {
                     $teamUids=array_unique($teamUids);
                     $teamUids=array_values($teamUids);
+                    @file_put_contents('quanju.txt', json_encode($teamUids) . "-各直属下级团队uid\r\n", 8);
                     $personal_achievement = User::whereIn('uid', $teamUids)
                         ->sum('achievement');
 //                    $team_achievement += $personal_achievement;