WIN-2308041133\Administrator 2 周之前
父節點
當前提交
d1232b6a2b
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      app/models/system/SystemUserTask.php

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

@@ -215,13 +215,13 @@ class SystemUserTask extends BaseModel
             @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);
-                $teamUids = UserController::getAllTeamMembers($value);  //获取直推下级的团队所有成员
+                $teamUids2 = UserController::getAllTeamMembers($value);  //获取直推下级的团队所有成员
 
-                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)
+                if (!empty($teamUids2)) {
+                    $teamUids2=array_unique($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');
 //                    $team_achievement += $personal_achievement;