|
|
@@ -1998,7 +1998,7 @@ return app("json")->success($data);
|
|
1998
|
1998
|
$data['yanglao_yugu_all'] = $data['yanglao_clear_all'] + $data['yanglao_nclear_all'];
|
|
1999
|
1999
|
$where['uid'] = $uid;
|
|
2000
|
2000
|
$data['totel_money'] = Db::name('user_bill')->where($where)
|
|
2001
|
|
- ->whereNotIn('commission_type', [5, 7, 17, 19])
|
|
|
2001
|
+ ->whereNotIn('commission_type', [0, 5, 17, 19])
|
|
2002
|
2002
|
->when($commission_type == 5, function ($query) use ($where, $startMonth, $endMonth) {
|
|
2003
|
2003
|
$query->whereBetween('create_time', [$startMonth, $endMonth]);
|
|
2004
|
2004
|
}, function ($query) use ($where, $month, $startMonth, $endMonth) {
|
|
|
@@ -2009,7 +2009,7 @@ return app("json")->success($data);
|
|
2009
|
2009
|
|
|
2010
|
2010
|
$pageInfo = Db::name('user_bill')
|
|
2011
|
2011
|
->where($where)
|
|
2012
|
|
- ->whereNotIn('commission_type', [5, 7, 17, 19])
|
|
|
2012
|
+ ->whereNotIn('commission_type', [0, 5, 17, 19])
|
|
2013
|
2013
|
->when($commission_type == 5, function ($query) use ($where, $startMonth, $endMonth) {
|
|
2014
|
2014
|
$query->whereBetween('create_time', [$startMonth, $endMonth]);
|
|
2015
|
2015
|
}, function ($query) use ($where, $month, $startMonth, $endMonth) {
|
|
|
@@ -3217,15 +3217,15 @@ return app("json")->success($data);
|
|
3217
|
3217
|
$data['sum_amount'] = Db::name('user_bill')
|
|
3218
|
3218
|
->where('uid', $uid)
|
|
3219
|
3219
|
->where('commission_type', '<>', 5)
|
|
|
3220
|
+ ->where('commission_type', '<>', 0)
|
|
3220
|
3221
|
->where('pm', 1)
|
|
3221
|
3222
|
->sum('number');
|
|
3222
|
3223
|
|
|
3223
|
|
-
|
|
3224
|
|
-
|
|
3225
|
3224
|
//未结算
|
|
3226
|
3225
|
$data['no_clear_amount'] = Db::name('user_bill')
|
|
3227
|
3226
|
->where('uid', $uid)
|
|
3228
|
3227
|
->where('commission_type', '<>', 5)
|
|
|
3228
|
+ ->where('commission_type', '<>', 0)
|
|
3229
|
3229
|
->where('pm', 1)
|
|
3230
|
3230
|
->where('status', 0)
|
|
3231
|
3231
|
->sum('number');
|
|
|
@@ -3243,7 +3243,7 @@ return app("json")->success($data);
|
|
3243
|
3243
|
//最终 总收益是 = 佣金余额 + 已提现 + 已转VR
|
|
3244
|
3244
|
$data['sum_amount'] = $data['sum_amount'] + $data['transition_vr_amount'];
|
|
3245
|
3245
|
|
|
3246
|
|
-
|
|
|
3246
|
+ $data['sum_amount'] = set_price_rtrim($data['sum_amount']);
|
|
3247
|
3247
|
return app('json')->success($data);
|
|
3248
|
3248
|
}
|
|
3249
|
3249
|
|