fix commission pedding stat

This commit is contained in:
Tokumeikoi 2020-05-26 15:46:44 +08:00
parent bade7e2cf3
commit 9885661795

View File

@ -30,6 +30,7 @@ class StatController extends Controller
'commission_pendding_total' => Order::where('commission_status', 0)
->where('invite_user_id', '!=', NULL)
->where('status', 3)
->where('commission_balance', '>', 0)
->count(),
'day_income' => Order::where('created_at', '>=', strtotime(date('Y-m-d')))
->where('created_at', '<', time())