@@ -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)