From 988566179543cd824a88a59efbbed9964a294633 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Tue, 26 May 2020 15:46:44 +0800 Subject: [PATCH] fix commission pedding stat --- app/Http/Controllers/Admin/StatController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Admin/StatController.php b/app/Http/Controllers/Admin/StatController.php index bfc0a95b..1dd50b85 100644 --- a/app/Http/Controllers/Admin/StatController.php +++ b/app/Http/Controllers/Admin/StatController.php @@ -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())