YS:收入金额改为佣金金额

es
yangsai@163.com 7 months ago
parent 4f54df02bf
commit 11543ece17
  1. 3
      app/api/controller/User.php

@ -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;
//分销用户信息

Loading…
Cancel
Save