| 
					
				 | 
			
			
				@@ -45,12 +45,9 @@ class OrderService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $data['todaySales'] = round($data['todaySales'], 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 今日余额收入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $data['todayCashSales'] = PayDetail::whereRaw('CAST(UNIX_TIMESTAMP(pay_paytimes) as SIGNED) > ? ', [$todayTimeUnix]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->where(function ($query) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                $query->where('pay_prepayid','like', '%CASH%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    ->OrWhere('pay_prepayid','like', '%VIP%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    ->orWhere('pay_prepayid','like', '%WELFARE%'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ->whereNotIn('pay_prepayid',['WXPAY','ALIPAY','OFFLINE_WXPAY','OFFLINE_ALIPAY','MONEY']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ->where('join_pay_order_id', '<>', '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ->where('pay_category','<>','REFUND') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ->where('pay_status', 'SUCCESS') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ->sum('pay_amount'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |