mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update: admin/stat/getOverride
This commit is contained in:
parent
30f0166ed1
commit
1a79a7e7f6
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\Admin;
|
||||||
|
|
||||||
|
use App\Models\CommissionLog;
|
||||||
use App\Models\ServerShadowsocks;
|
use App\Models\ServerShadowsocks;
|
||||||
use App\Models\ServerTrojan;
|
use App\Models\ServerTrojan;
|
||||||
use App\Models\StatUser;
|
use App\Models\StatUser;
|
||||||
@ -47,14 +48,12 @@ class StatController extends Controller
|
|||||||
->where('created_at', '<', strtotime(date('Y-m-1')))
|
->where('created_at', '<', strtotime(date('Y-m-1')))
|
||||||
->whereNotIn('status', [0, 2])
|
->whereNotIn('status', [0, 2])
|
||||||
->sum('total_amount'),
|
->sum('total_amount'),
|
||||||
'commission_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
'commission_month_payout' => CommissionLog::where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('created_at', '>=', strtotime(date('Y-m-1')))
|
|
||||||
->where('created_at', '<', time())
|
->where('created_at', '<', time())
|
||||||
->sum('actual_commission_balance'),
|
->sum('get_amount'),
|
||||||
'commission_last_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
'commission_last_month_payout' => CommissionLog::where('created_at', '>=', strtotime('-1 month', strtotime(date('Y-m-1'))))
|
||||||
->where('created_at', '>=', strtotime('-1 month', strtotime(date('Y-m-1'))))
|
|
||||||
->where('created_at', '<', strtotime(date('Y-m-1')))
|
->where('created_at', '<', strtotime(date('Y-m-1')))
|
||||||
->sum('actual_commission_balance'),
|
->sum('get_amount'),
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user