|
|
@ -72,7 +72,13 @@ class User extends Controller |
|
|
|
->where('money', '>', 0) |
|
|
|
->where('money', '>', 0) |
|
|
|
->sum('money') ?? 0; |
|
|
|
->sum('money') ?? 0; |
|
|
|
//分销用户信息 |
|
|
|
//分销用户信息 |
|
|
|
$userInfo['dealer_info'] = DealerUserModel::detail($userInfo->user_id, []); |
|
|
|
$dealer_info = DealerUserModel::detail($userInfo->user_id, []); |
|
|
|
|
|
|
|
$userInfo['withdrawal_money'] = 0; |
|
|
|
|
|
|
|
$userInfo['freeze_money'] = 0; |
|
|
|
|
|
|
|
if (!empty($dealer_info)) { |
|
|
|
|
|
|
|
$userInfo['withdrawal_money'] = !empty($dealer_info->money) ? $dealer_info->money : 0; |
|
|
|
|
|
|
|
$userInfo['freeze_money'] = !empty($dealer_info->freeze_money) ? $dealer_info->freeze_money : 0; |
|
|
|
|
|
|
|
} |
|
|
|
return $this->renderSuccess(compact('userInfo')); |
|
|
|
return $this->renderSuccess(compact('userInfo')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|