|
@@ -386,7 +386,6 @@ class User extends BaseModel
|
|
|
// $user = User::find($uid);
|
|
// $user = User::find($uid);
|
|
|
// $group_users = app()->make(GiftLevel::class)->get_group_user($uid);
|
|
// $group_users = app()->make(GiftLevel::class)->get_group_user($uid);
|
|
|
$group_users = User::where('spread_uid',$uid)->column('uid');
|
|
$group_users = User::where('spread_uid',$uid)->column('uid');
|
|
|
- @file_put_contents('quanju.txt', json_encode($group_users)."-下级用户名单\r\n", 8);
|
|
|
|
|
// $count = app()->make(StoreOrderRepository::class);
|
|
// $count = app()->make(StoreOrderRepository::class);
|
|
|
$order_count = StoreOrder::getDB()->whereIn('uid',$group_users)->where('paid',1)->where('is_del',0)->count();
|
|
$order_count = StoreOrder::getDB()->whereIn('uid',$group_users)->where('paid',1)->where('is_del',0)->count();
|
|
|
return $order_count;
|
|
return $order_count;
|