From 5ecff9ca7cc615da57f270416a206f0157314ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Mar 2021 19:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Producer.php | 3 +++ Kafka/Struct.php | 1 - function.php | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Kafka/Producer.php b/Kafka/Producer.php index f20f5695..0697e7a2 100644 --- a/Kafka/Producer.php +++ b/Kafka/Producer.php @@ -108,6 +108,9 @@ class Producer extends Component } else if (!isset($consumers['groupId'])) { $consumers['groupId'] = $topic . ':' . Snowflake::localhost(); } + + var_dump(swoole_serialize($params)); + $this->setGroupId($groupId)->setTopic($topic) ->setBrokers($consumers['brokers']) ->delivery(swoole_serialize($params)); diff --git a/Kafka/Struct.php b/Kafka/Struct.php index 1800646f..9dc755eb 100644 --- a/Kafka/Struct.php +++ b/Kafka/Struct.php @@ -24,7 +24,6 @@ class Struct */ public function __construct($topic, Message $message) { - var_dump($message->payload); $message->payload = swoole_unserialize($message->payload); $this->topic = $topic; diff --git a/function.php b/function.php index c5448dd7..2646c755 100644 --- a/function.php +++ b/function.php @@ -671,7 +671,6 @@ if (!function_exists('swoole_serialize')) { */ function swoole_serialize($data): string { - var_dump(class_exists('swoole_serialize')); if (class_exists('swoole_serialize')) { return \swoole_serialize::pack($data); } else {