hrjy 3 years ago
parent
commit
e57dad9039
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/user/UserController.php

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

@@ -723,7 +723,7 @@ class UserController
         {
             $time = $item['proxy_time'] + (86400 * 30);
             if ($time < time()) {
-                $uids = get_downline(User::select()->toArray(), $item['uid']);
+                $uids = User::where('spread_uid', $item['uid'])->where('identity', 1)->column('uid');
                 $order_count = StoreOrder::where('uid', 'in', $uids)->where('paid', 1)->whereBetweenTime('add_time', $item['proxy_time'], time())->where('status', '>=', 0)->count();
                 if ($order_count >= 5)
                 {