|
@@ -17,6 +17,8 @@ class OrderService
|
|
|
// 今日收入
|
|
|
$data['todayRevenue'] = Order::where('order_status_payment', 'SUCCESS')
|
|
|
->where('order_addtimes', '>', $todayTimeUnix)
|
|
|
+ ->where('order_addtimes', '<>', 'RETURN')
|
|
|
+ ->where('order_addtimes', '<>', 'RECHARGE')
|
|
|
->sum('order_amount_pay');
|
|
|
// 今日退单
|
|
|
$data['todayRefund'] = OrderReturn::where('order_return_addtimes', '>', $todayTimeUnix)->count();
|