This commit is contained in:
2021-03-24 19:38:12 +08:00
parent 5050d10160
commit 5ecff9ca7c
3 changed files with 3 additions and 2 deletions
+3
View File
@@ -108,6 +108,9 @@ class Producer extends Component
} else if (!isset($consumers['groupId'])) { } else if (!isset($consumers['groupId'])) {
$consumers['groupId'] = $topic . ':' . Snowflake::localhost(); $consumers['groupId'] = $topic . ':' . Snowflake::localhost();
} }
var_dump(swoole_serialize($params));
$this->setGroupId($groupId)->setTopic($topic) $this->setGroupId($groupId)->setTopic($topic)
->setBrokers($consumers['brokers']) ->setBrokers($consumers['brokers'])
->delivery(swoole_serialize($params)); ->delivery(swoole_serialize($params));
-1
View File
@@ -24,7 +24,6 @@ class Struct
*/ */
public function __construct($topic, Message $message) public function __construct($topic, Message $message)
{ {
var_dump($message->payload);
$message->payload = swoole_unserialize($message->payload); $message->payload = swoole_unserialize($message->payload);
$this->topic = $topic; $this->topic = $topic;
-1
View File
@@ -671,7 +671,6 @@ if (!function_exists('swoole_serialize')) {
*/ */
function swoole_serialize($data): string function swoole_serialize($data): string
{ {
var_dump(class_exists('swoole_serialize'));
if (class_exists('swoole_serialize')) { if (class_exists('swoole_serialize')) {
return \swoole_serialize::pack($data); return \swoole_serialize::pack($data);
} else { } else {