wang hou sheng 7 months ago
parent d3c50e69f8
commit c74b2702d1
  1. 8
      app/api/controller/User.php

@ -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'));
} }

Loading…
Cancel
Save