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): \Illuminate\Foundation\Bus\PendingDispatch { return self::dispatch($bean->toArrayNotNull())->onQueue(QueueWalletPlatformTransactionBean::QUEUE_NAME); } }