|
|
|
@ -68,7 +68,8 @@ class User extends Controller |
|
|
|
|
$userInfo['finace_count'] = BalanceLog::where(['user_id' => $userInfo->user_id, 'scene' => 50])->count() ?? 0; |
|
|
|
|
//获取用户收入 |
|
|
|
|
$userInfo['income'] = BalanceLog::where(['user_id' => $userInfo->user_id]) |
|
|
|
|
->whereIn('scene', [10, 30, 40, 60]) |
|
|
|
|
// ->whereIn('scene', [10, 30, 40, 60]) |
|
|
|
|
->whereIn('scene', [60]) |
|
|
|
|
->where('money', '>', 0) |
|
|
|
|
->sum('money') ?? 0; |
|
|
|
|
//分销用户信息 |
|
|
|
|