This commit is contained in:
2021-03-24 17:57:08 +08:00
parent 2610267aba
commit 6df0cb4003
11 changed files with 576 additions and 532 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ class Producer extends Component
}
$groupId = $consumers['groupId'];
}
$this->setGroupId($groupId)->setTopic($topic)->delivery(Json::encode($params));
$this->setGroupId($groupId)->setTopic($topic)->delivery(swoole_serialize($params));
}
+2
View File
@@ -24,6 +24,8 @@ class Struct
*/
public function __construct($topic, Message $message)
{
$message->payload = swoole_unserialize($message->payload);
$this->topic = $topic;
$this->offset = $message->offset;
$this->part = $message->partition;