mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	fix: stat
This commit is contained in:
		| @@ -29,16 +29,16 @@ class StatController extends Controller | |||||||
|                     ->count(), |                     ->count(), | ||||||
|                 'commission_pendding_total' => Order::where('commission_status', 0) |                 'commission_pendding_total' => Order::where('commission_status', 0) | ||||||
|                     ->where('invite_user_id', '!=', NULL) |                     ->where('invite_user_id', '!=', NULL) | ||||||
|                     ->where('status', 3) |                     ->where('status', [3, 4]) | ||||||
|                     ->where('commission_balance', '>', 0) |                     ->where('commission_balance', '>', 0) | ||||||
|                     ->count(), |                     ->count(), | ||||||
|                 'day_income' => Order::where('created_at', '>=', strtotime(date('Y-m-d'))) |                 'day_income' => Order::where('created_at', '>=', strtotime(date('Y-m-d'))) | ||||||
|                     ->where('created_at', '<', time()) |                     ->where('created_at', '<', time()) | ||||||
|                     ->where('status', 3) |                     ->where('status', [3, 4]) | ||||||
|                     ->sum('total_amount'), |                     ->sum('total_amount'), | ||||||
|                 'last_month_income' => Order::where('created_at', '>=', strtotime('-1 month', strtotime(date('Y-m-1')))) |                 'last_month_income' => Order::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'))) | ||||||
|                     ->where('status', 3) |                     ->where('status', [3, 4]) | ||||||
|                     ->sum('total_amount') |                     ->sum('total_amount') | ||||||
|             ] |             ] | ||||||
|         ]); |         ]); | ||||||
|   | |||||||
| @@ -236,5 +236,5 @@ return [ | |||||||
|     | The only modification by laravel config |     | The only modification by laravel config | ||||||
|     | |     | | ||||||
|     */ |     */ | ||||||
|     'version' => '1.4' |     'version' => '1.4.1' | ||||||
| ]; | ]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user