Browse Source

查询团队贡献值时,不限制查询层级

sunxbiao 1 year ago
parent
commit
8e01c9dafe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/api/user/User.php

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

@@ -317,7 +317,7 @@ class User extends BaseController
317
             // 先去更新一下用户身份
317
             // 先去更新一下用户身份
318
             $number = Db::name("system_config_value")->where(["config_key" => "team_commission_recursion_depth"])->value("value");
318
             $number = Db::name("system_config_value")->where(["config_key" => "team_commission_recursion_depth"])->value("value");
319
             $this->repository->setUserIdentity($user->uid);
319
             $this->repository->setUserIdentity($user->uid);
320
-            $result = $this->repository->getUserContributeInfoByDepth($user->uid, $number);
320
+            $result = $this->repository->getUserContributeInfoByDepth($user->uid, 0);
321
             $con = DB::name('user')->where('uid', $user->uid)->find();
321
             $con = DB::name('user')->where('uid', $user->uid)->find();
322
             $isNormalUser = false;
322
             $isNormalUser = false;
323
             if ($con['user_group'] == 1) {
323
             if ($con['user_group'] == 1) {