getType(); //提现 if ($type == WalletAddressTransactionModel::TYPE_WITHDRAW) { $oWithdrawService->walletPlatformTransactionConsumer($bean); } //充值 if ($type == WalletAddressTransactionModel::TYPE_RECHARGE) { $oRechargeSService->walletPlatformTransactionConsumer($bean); } } catch (\Exception $e) { } } public static function putToQueue(QueueWalletPlatformTransactionBean $bean, $delaySec = null): \Illuminate\Foundation\Bus\PendingDispatch { $queue = self::dispatch($bean->toArrayNotNull())->onQueue(QueueWalletPlatformTransactionBean::QUEUE_NAME); if(!empty($delaySec)){ $queue->delay(now()->addSeconds($delaySec)); } return $queue; } }