|
|
@@ -22,18 +22,18 @@ class PaymentOrder extends Controller
|
|
|
public function unProcessed()
|
|
|
{
|
|
|
//USDT充值订单
|
|
|
- $data['usdtRecharge'] = (int)Recharge::where('status', 0)->count();
|
|
|
+ $data['usdtRecharge'] = (int)Recharge::where('status', 0)->where('created_at', '>', date('Y-m-d H:i:s', strtotime('-1 day')))->count();
|
|
|
//人工充值订单
|
|
|
- $data['rgRecharge'] = (int)PaymentOrderModel::whereIn('status', [0,1,5])->where('type', 3)->count();
|
|
|
+ $data['rgRecharge'] = (int)PaymentOrderModel::whereIn('status', [0,1,5])->where('type', 3)->where('created_at', '>', date('Y-m-d H:i:s', strtotime('-1 day')))->count();
|
|
|
//人民币充值订单
|
|
|
- $data['rmbRecharge'] = (int)PaymentOrderModel::whereIn('status', [0,1])->where('type', 1)->count();
|
|
|
+ $data['rmbRecharge'] = (int)PaymentOrderModel::whereIn('status', [0,1])->where('type', 1)->where('created_at', '>', date('Y-m-d H:i:s', strtotime('-1 day')))->count();
|
|
|
|
|
|
//USDT提现订单
|
|
|
- $data['usdtWithdraw'] = (int)Withdraw::where('status', 0)->count();
|
|
|
+ $data['usdtWithdraw'] = (int)Withdraw::where('status', 0)->where('created_at', '>', date('Y-m-d H:i:s', strtotime('-1 day')))->count();
|
|
|
//人工提现订单
|
|
|
- $data['rgWithdraw'] = (int)PaymentOrderModel::where('status', 0)->where('type', 4)->count();
|
|
|
+ $data['rgWithdraw'] = (int)PaymentOrderModel::where('status', 0)->where('type', 4)->where('created_at', '>', date('Y-m-d H:i:s', strtotime('-1 day')))->count();
|
|
|
//人民币提现订单
|
|
|
- $data['rmbWithdraw'] = (int)PaymentOrderModel::where('status', 0)->where('type', 2)->count();
|
|
|
+ $data['rmbWithdraw'] = (int)PaymentOrderModel::where('status', 0)->where('type', 2)->where('created_at', '>', date('Y-m-d H:i:s', strtotime('-1 day')))->count();
|
|
|
return $this->success($data);
|
|
|
}
|
|
|
|