|
|
@ -47,10 +47,11 @@ class PaymentCommand extends HyperfCommand
|
|
|
|
* @var PaymentService $paymentService
|
|
|
|
* @var PaymentService $paymentService
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
$paymentService = $this->container->make(PaymentService::class);
|
|
|
|
$paymentService = $this->container->make(PaymentService::class);
|
|
|
|
$fiveMinute = date('Y-m-d H:i:s', time() - 6*60);
|
|
|
|
$endTime = date('Y-m-d H:i:s', time() - 6*60);
|
|
|
|
$orders = Order::where('updated_at', '<=', $fiveMinute)->where('status', 'SUCCESS')->get();
|
|
|
|
$beginTime = date('Y-m-d H:i:s', time() - 20*60);
|
|
|
|
|
|
|
|
$orders = Order::where('updated_at', '>=', $beginTime)->where('updated_at', '<=', $endTime)->where('status', 'SUCCESS')->get();
|
|
|
|
foreach ($orders as $order) {
|
|
|
|
foreach ($orders as $order) {
|
|
|
|
if ($order->user_id != 'ELF1990') {
|
|
|
|
if ($order->user_id != 'ELF1990' && strpos($order->user_id, 'ACT_') !== 0) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$userId = $order->user_id;
|
|
|
|
$userId = $order->user_id;
|
|
|
|